Skip to content

Fix release workflow to work with immutable releases setting#1650

Merged
dopey merged 1 commit into
masterfrom
fix/release-draft
Jun 10, 2026
Merged

Fix release workflow to work with immutable releases setting#1650
dopey merged 1 commit into
masterfrom
fix/release-draft

Conversation

@dopey

@dopey dopey commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

A repo setting change enabled immutable releases, which prevents uploading assets to a release once it's published. Creating the release as a draft lets goreleaser upload all assets first, then publish as its final step.

Root cause

The "Restrict version tags" ruleset added in April 2026 protects v* tags. GitHub treats the associated release as immutable once published — asset uploads return 422 Cannot upload assets to an immutable release. This broke the release workflow starting with v0.30.3.

Fix

Change the create_release step to create the GitHub release as a draft (draft: true). Goreleaser finds the draft, uploads all assets, then publishes the release as its final step. Goreleaser already always uploads to a draft internally before publishing, so no goreleaser config changes are needed.

🤖 Generated with Claude Code

A repo setting change enabled immutable releases, which prevents
uploading assets to a release once it's published. Creating the
release as a draft here lets goreleaser upload all assets first,
then publish as its final step.

Change-Type: fix
Release-Note: no
Audience: internal
Impact: medium
Breaking: false
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the needs triage Waiting for discussion / prioritization by team label Jun 10, 2026
@dopey dopey marked this pull request as ready for review June 10, 2026 04:59
@dopey dopey enabled auto-merge (squash) June 10, 2026 04:59
@dopey dopey merged commit 27f49f3 into master Jun 10, 2026
19 of 20 checks passed
@dopey dopey deleted the fix/release-draft branch June 10, 2026 05:25
@hslatman hslatman modified the milestones: v0.30.3, v0.30.4 Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs triage Waiting for discussion / prioritization by team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants