Skip to content

Commit 97ec97c

Browse files
authored
fix: create release as draft to allow MCPB bundle uploads (#37)
GitHub releases are immutable once published. GoReleaser publishes the release, then subsequent steps fail when uploading MCPB bundles with HTTP 422 "Cannot upload assets to an immutable release". Create the release as a draft, upload all assets, then publish at the end.
1 parent 3aec300 commit 97ec97c

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ jobs:
145145
# Publish the server to the MCP registry
146146
mcp-publisher publish
147147
148+
- name: Publish release
149+
env:
150+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151+
run: |
152+
gh release edit "$GITHUB_REF_NAME" --draft=false
153+
148154
# NOTE: SLSA provenance job removed due to false positive "private repository" detection
149155
# See: https://github.com/slsa-framework/slsa-github-generator/issues
150156
# The workflow incorrectly detects public repos as private and halts.

.goreleaser.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ release:
170170
name: mcp-trino
171171
name_template: "{{.ProjectName}}-v{{.Version}}"
172172
prerelease: auto
173+
draft: true
173174
mode: append
174175
footer: |
175176
## Installation

0 commit comments

Comments
 (0)