Skip to content

Commit

Permalink
release fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyjosh committed Jan 2, 2025
1 parent e597349 commit b28597c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
'';
};

Expand Down

0 comments on commit b28597c

Please sign in to comment.