fix on release and run

This commit is contained in:
dal 2025-05-08 03:25:59 -06:00
parent abf09eed6b
commit 56acfcab1b
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
2 changed files with 5 additions and 4 deletions

View File

@ -130,7 +130,7 @@ jobs:
- name: Extract version from Cargo.toml
id: get_version
run: |
VERSION=$(grep '^version =' cli/cli/Cargo.toml | sed 's/version = "\\(.*\ astounding\\)"/\\1/')
VERSION=$(grep '^version =' cli/cli/Cargo.toml | sed 's/version = "\(.*\)"/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Extracted version: $VERSION"
- name: Create Release

View File

@ -11,6 +11,7 @@ use std::time::Duration;
#[derive(RustEmbed)]
#[folder = "../../"]
#[include = ".env.example"]
#[include = "docker-compose.yml"]
#[include = "supabase/.env.example"]
#[include = "supabase/**/*"]
@ -69,8 +70,8 @@ async fn setup_persistent_app_environment() -> Result<PathBuf, BusterError> {
))
})?;
// Initialize .env from supabase/.env.example, which should have been extracted by StaticAssets loop
let example_env_src_path = app_base_dir.join("supabase/.env.example");
// Initialize .env from .env.example (the one at app_base_dir), which should have been extracted by StaticAssets loop
let example_env_src_path = app_base_dir.join(".env.example");
let main_dot_env_target_path = app_base_dir.join(".env");
if example_env_src_path.exists() {
@ -83,7 +84,7 @@ async fn setup_persistent_app_environment() -> Result<PathBuf, BusterError> {
))
})?;
} else {
// This case should ideally not be hit if supabase/.env.example is correctly embedded and extracted.
// This case should ideally not be hit if .env.example is correctly embedded and extracted.
// If it's missing, it indicates an issue with asset handling.
return Err(BusterError::CommandError(format!(
"Critical setup error: {} not found after asset extraction. Cannot initialize main .env file.",