diff --git a/.github/workflows/tauri-release.yml b/.github/workflows/tauri-release.yml index 1259c16b5..fdb7de7b0 100644 --- a/.github/workflows/tauri-release.yml +++ b/.github/workflows/tauri-release.yml @@ -69,6 +69,11 @@ jobs: - run: nix develop .#tauri-shell -c ob-tauri-unit-test + - run: nix develop .#tauri-shell --command ob-tauri-before-build-ci + working-directory: ./tauri-app + env: + WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }} + - run: nix develop .#tauri-shell --command ob-tauri-before-release working-directory: ./tauri-app env: diff --git a/flake.nix b/flake.nix index c637966d7..146a29683 100644 --- a/flake.nix +++ b/flake.nix @@ -134,7 +134,6 @@ sentry-cli releases set-commits --auto ''${COMMIT_SHA} # Overwrite env variables with release values - echo VITE_WALLETCONNECT_PROJECT_ID=''${WALLETCONNECT_PROJECT_ID} >> .env echo SENTRY_AUTH_TOKEN=''${SENTRY_AUTH_TOKEN} >> .env echo SENTRY_ORG=''${SENTRY_ORG} >> .env echo SENTRY_PROJECT=''${SENTRY_PROJECT} >> .env @@ -157,8 +156,8 @@ ENV_EXAMPLE_FILE=".env.example" cp $ENV_EXAMPLE_FILE $ENV_FILE - # Add walletconnect project id from github action env to .env file - echo VITE_WALLETCONNECT_PROJECT_ID=''${WALLETCONNECT_PROJECT_ID} >> $ENV_FILE + # Update the existing WALLETCONNECT_PROJECT_ID line + sed -i "s/^VITE_WALLETCONNECT_PROJECT_ID=.*/VITE_WALLETCONNECT_PROJECT_ID=''${WALLETCONNECT_PROJECT_ID}/" $ENV_FILE ''; };