Skip to content

Commit

Permalink
CI-CD: Fix gh release target
Browse files Browse the repository at this point in the history
`gh release --target` no longer accepts a full ref
(and has never allowed a tag). It needs either
a branch or a sha.
  • Loading branch information
medmunds committed Jul 11, 2024
1 parent f86c019 commit 2403171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
NOTES: |
[Changelog](https://anymail.dev/en/stable/changelog/#${{ steps.version.outputs.anchor }})
run: |
if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES"; then
gh release create "$TAG" --verify-tag --target "$GITHUB_REF" --title "$TITLE" --notes "$NOTES"
if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"; then
gh release create "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"
fi
gh release upload "$TAG" ./dist/*

0 comments on commit 2403171

Please sign in to comment.