Skip to content

Commit 408348c

Browse files
committed
Fix the tag publishing.
1 parent e7d9070 commit 408348c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/specs/deploy.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ codesign/jsign the executable
195195
6. **Create GitHub Release**
196196
- `gh release create v0.1.0 --title "v0.1.0" --notes-file CHANGELOG.md`
197197
- Upload: update bundles (`.tar.gz`, `.exe`, `.AppImage`)
198+
- If a draft release already exists for the tag, publish it after uploading assets
199+
- Verify the tag exists on the remote before creating or publishing the release
198200
7. **Verify** — spot-check signatures, confirm release assets are correct
199201
200202
### Resuming after failure

scripts/sign-and-deploy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,11 +633,14 @@ create_release() {
633633
gh release edit "$tag" \
634634
--repo "$GITHUB_REPO" \
635635
--title "$tag" \
636+
--verify-tag \
637+
--draft=false \
636638
--notes-file "$notes_file"
637639
else
638640
gh release create "$tag" \
639641
--repo "$GITHUB_REPO" \
640642
--title "$tag" \
643+
--verify-tag \
641644
--notes-file "$notes_file" \
642645
"$release_dir"/*
643646
fi

0 commit comments

Comments
 (0)