You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): correct env var expansion in release workflow matrix
The `archive_command` definitions within the `strategy.matrix` in `release.yml` were attempting to use GitHub Actions expression syntax (`${{ env.VAR }}`) to access environment variables (`ARCHIVE_NAME` and `STAGING_DIR`).
This caused errors because:
1. `ARCHIVE_NAME` is set dynamically in a later step using `$GITHUB_ENV` and is not available during the initial matrix evaluation phase.
2. Using `${{ env.STAGING_DIR }}` within the command string itself was also problematic in this context, even though `STAGING_DIR` is defined globally.
This commit changes the `archive_command` strings to use standard shell variable expansion syntax (`"$VAR"` for bash, `"$env:VAR"` for pwsh). These variables are correctly resolved within the shell environment when the `Package release artifacts` step executes, after the necessary environment variables have been set.
0 commit comments