Skip to content

Commit e7432b0

Browse files
BakerNetclaude
andcommitted
ci: trigger goreleaser on tag push, create draft release
Switch the goreleaser workflow from a `release` event trigger to a tag push trigger. The `release` event never fired for draft releases (no `release` activity type is emitted while a release is a draft), so the automated release build never ran. GoReleaser now builds on `v*` tag pushes and creates the GitHub release as a draft, uploading all artifacts. The release notes are generated manually in the UI (selecting the previous tag) and the release is then published. Publishing last keeps assets intact under immutable releases, which freeze a release's assets on publish. Also pass `--config goreleaser.yml` since the config uses a non-standard filename that GoReleaser would not otherwise auto-discover. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7e3ec46 commit e7432b0

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: goreleaser
22

33
on:
4-
release:
5-
types: [created]
4+
push:
5+
tags:
6+
- 'v*'
67

78
permissions: {}
89

@@ -27,6 +28,6 @@ jobs:
2728
uses: goreleaser/goreleaser-action@5daf1e915a5f0af01ddbcd89a43b8061ff4f1a89 # v7
2829
with:
2930
version: latest
30-
args: release --clean
31+
args: release --clean --config goreleaser.yml
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

goreleaser.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ checksum:
5858
name_template: 'checksums.txt'
5959
snapshot:
6060
version_template: "{{ .Tag }}-next"
61+
release:
62+
# Create the GitHub release as a draft so the changelog can be generated
63+
# manually (selecting the previous tag) before publishing. Publishing last
64+
# is also required for immutable releases, since assets are frozen on publish.
65+
draft: true
6166
changelog:
62-
sort: asc
63-
filters:
64-
exclude:
65-
- '^docs:'
66-
- '^test:'
67+
# Notes are generated manually in the GitHub UI before publishing.
68+
disable: true

0 commit comments

Comments
 (0)