Skip to content

Commit 6a350fb

Browse files
authored
fix: create release as draft so MCPB bundles can be uploaded (#395)
GoReleaser creates the release as published (immutable), which causes the subsequent MCPB upload step to fail with HTTP 422. Create the release as a draft first, then publish it after all assets are uploaded.
1 parent 454929e commit 6a350fb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ jobs:
9292
gh release upload "$GITHUB_REF_NAME" "${mcpb}.sigstore.json" --clobber
9393
done
9494
95+
- name: Publish release
96+
env:
97+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98+
run: gh release edit "$GITHUB_REF_NAME" --draft=false
99+
95100
- name: Generate artifact hashes
96101
id: hash
97102
run: |

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ release:
189189
owner: txn2
190190
name: kubefwd
191191
name_template: "{{.ProjectName}}-v{{.Version}}"
192+
draft: true
192193

193194
# Homebrew Formula - for existing users who installed via `brew install txn2/tap/kubefwd`
194195
brews:

0 commit comments

Comments
 (0)