Skip to content

Commit da76192

Browse files
committed
ci: fix release asset re-upload on existing tags
gh release upload does not accept the file#label syntax (only create does); use the bare filename in the update branch so re-tagging an existing release refreshes its asset instead of failing.
1 parent e2056ed commit da76192

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ jobs:
3636
GH_TOKEN: ${{ github.token }}
3737
TAG: ${{ github.ref_name }}
3838
run: |
39-
ASSET="rpn-${TAG}.nwa#RPN app (${TAG}) — install via my.numworks.com/apps"
39+
FILE="rpn-${TAG}.nwa"
4040
if gh release view "$TAG" >/dev/null 2>&1; then
4141
echo "Release $TAG exists — updating asset."
42-
gh release upload "$TAG" "$ASSET" --clobber
42+
gh release upload "$TAG" "$FILE" --clobber
4343
else
44-
gh release create "$TAG" "$ASSET" \
44+
gh release create "$TAG" "${FILE}#RPN app (${TAG}) — install via my.numworks.com/apps" \
4545
--title "RPN ${TAG}" \
4646
--notes "RPN calculator for NumWorks.
4747

0 commit comments

Comments
 (0)