Skip to content

fix(ci): upload release assets to draft before publishing#12

Merged
meck93 merged 1 commit into
mainfrom
fix/release-immutable-draft
Jul 7, 2026
Merged

fix(ci): upload release assets to draft before publishing#12
meck93 merged 1 commit into
mainfrom
fix/release-immutable-draft

Conversation

@meck93

@meck93 meck93 commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Problem

The Release workflow failed with:

Cannot upload asset CaptureThis.app.zip to an immutable release.

GitHub's immutable releases only allow asset uploads before a release is published. action-gh-release was publishing the release and then uploading assets, which is now rejected.

Changes

  • Create the GitHub release as a draft (draft: true) so .app.zip/.dmg upload to the unpublished release, then a follow-up step flips it to published via gh release edit --draft=false.
  • Bump actions/checkout@v4@v5 to run natively on Node 24 (silences the Node 20 deprecation warning).

The macos-latest migration notice is informational only and left unchanged.

Note

The stuck, asset-less v0.3.0 release + tag and the empty v0.3.1 draft were deleted, so re-running the release on a fresh tag is clean.

🤖 Generated with Claude Code

GitHub immutable releases reject asset uploads after publish. Create the
release as a draft with assets attached, then flip to published.

Also bump actions/checkout v4 -> v5 to run natively on Node 24.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@meck93
meck93 merged commit 57e91f1 into main Jul 7, 2026
1 check passed
@meck93
meck93 deleted the fix/release-immutable-draft branch July 7, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant