fix(ci): pin release tag to triggering commit via --target GITHUB_SHA

Without --target, gh release create tags the latest commit on the
default branch, which may differ from the commit that built the
artifacts. Pin to $GITHUB_SHA so the tag always matches the built ref.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jordanthejet 2026-03-07 18:12:57 -05:00
parent a2d5672e72
commit 2896875331
2 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,7 @@ jobs:
run: |
gh release create "${{ needs.validate.outputs.tag }}" \
--repo "${{ github.repository }}" \
--target "$GITHUB_SHA" \
--title "${{ needs.validate.outputs.tag }}" \
--latest \
--generate-notes \

View File

@ -142,6 +142,7 @@ jobs:
run: |
gh release create "${{ needs.version.outputs.tag }}" \
--repo "${{ github.repository }}" \
--target "$GITHUB_SHA" \
--title "${{ needs.version.outputs.tag }}" \
--prerelease \
--generate-notes \