Skip to content

Commit 571ac7e

Browse files
jdxclaude
andcommitted
fix(publish): anchor gh release create to GITHUB_SHA to avoid untagged release
Without --target, gh release create resolves the tag via the GitHub API which can race with tag propagation and create an untagged-* draft release that taiki-e/upload-rust-binary-action cannot find by tag name. Explicitly passing --target "$GITHUB_SHA" bypasses the tag lookup and anchors the release to the exact commit SHA from the triggering event. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent e7c2717 commit 571ac7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
TAG_NAME="${{ github.ref_name }}"
3434
# Extract first version section from CHANGELOG.md as baseline
3535
awk '/^## \[/{if(found) exit; found=1} found{print}' CHANGELOG.md >/tmp/release-notes.txt
36-
gh release create --draft "$TAG_NAME" \
36+
gh release create --draft --target "$GITHUB_SHA" "$TAG_NAME" \
3737
--title "$TAG_NAME" \
3838
--notes-file /tmp/release-notes.txt
3939
- name: Enhance release notes with communique

0 commit comments

Comments
 (0)