Skip to content

Commit 2403171

Browse files
committed
CI-CD: Fix gh release target
`gh release --target` no longer accepts a full ref (and has never allowed a tag). It needs either a branch or a sha.
1 parent f86c019 commit 2403171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
NOTES: |
7777
[Changelog](https://anymail.dev/en/stable/changelog/#${{ steps.version.outputs.anchor }})
7878
run: |
79-
if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES"; then
80-
gh release create "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES"
79+
if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"; then
80+
gh release create "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"
8181
fi
8282
gh release upload "$TAG" ./dist/*

0 commit comments

Comments
 (0)