Skip to content

Commit b7cb977

Browse files
author
MochiOS Team
committed
fix ci: delete + recreate nightly release instead of upload to existing
1 parent 2123440 commit b7cb977

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎.github/workflows/build-iso.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,5 @@ jobs:
8686
cd /tmp/iso
8787
iso=$(ls *.iso 2>/dev/null | head -1)
8888
if [ -z "$iso" ]; then echo "no iso found"; exit 1; fi
89-
gh release view "$RELEASE_TAG" --json url &>/dev/null && \
90-
gh release upload "$RELEASE_TAG" "$iso" --clobber || \
91-
gh release create "$RELEASE_TAG" "$iso" --title "MochiOS Nightly" --notes "auto-built from main" --prerelease
89+
gh release delete "$RELEASE_TAG" --yes 2>/dev/null || true
90+
gh release create "$RELEASE_TAG" "$iso" --title "MochiOS Nightly" --notes "auto-built from main" --prerelease

0 commit comments

Comments
 (0)