Skip to content

Commit e82ab3e

Browse files
committed
CI: fix GitHub release step
(Code has not been downloaded in release job, so must identify repo to cli.)
1 parent 7e0aa99 commit e82ab3e

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,20 @@ jobs:
106106
NOTES: |
107107
[Changelog](https://anymail.dev/en/stable/changelog/#${{ needs.build.outputs.anchor }})
108108
run: |
109-
if ! gh release edit "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"; then
110-
gh release create "$TAG" --verify-tag --target "$GITHUB_SHA" --title "$TITLE" --notes "$NOTES"
109+
if ! gh release edit "$TAG" \
110+
--repo "$GITHUB_REPOSITORY" \
111+
--verify-tag \
112+
--target "$GITHUB_SHA" \
113+
--title "$TITLE" \
114+
--notes "$NOTES"\
115+
then
116+
gh release create "$TAG" \
117+
--repo "$GITHUB_REPOSITORY" \
118+
--verify-tag \
119+
--target "$GITHUB_SHA" \
120+
--title "$TITLE" \
121+
--notes "$NOTES"
111122
fi
112-
gh release upload "$TAG" ./dist/*
123+
gh release upload "$TAG" \
124+
--repo "$GITHUB_REPOSITORY" \
125+
./dist/*

0 commit comments

Comments
 (0)