Skip to content

Release: GoReleaser fills the workflow's draft - #27

Merged
coyl merged 1 commit into
mainfrom
fix/goreleaser-draft-name
Oct 24, 2026
Merged

coyl merged 1 commit into
mainfrom
fix/goreleaser-draft-name

Conversation

@coyl

@coyl coyl commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

In v1.1.0 GoReleaser did not find the draft that release.yml created: it looks up a draft by name (findDraftRelease: r.GetDraft() && r.GetName() == name), its default name is the tag (v1.1.0), and the workflow names the draft light-tokenmeter 1.1.0. So the archives, checksums.txt and SBOMs went to a second draft and the published release had none.

  • .goreleaser.yaml: release.name_template: "light-tokenmeter {{ .Version }}", the workflow's name.
  • release.yml: publish stops when the release has no checksums.txt, so an empty release is never published again.

v1.1.0 itself is repaired by hand: the 10 files were copied to the published release (sums and the cosign bundle verified). The stray draft v1.1.0 is still there and can be deleted.

GoReleaser looks up an existing draft by name; its default name is the
tag, while release.yml names the draft "light-tokenmeter X.Y.Z". In
1.1.0 the archives went to a second draft and the published release had
none. Publishing now stops when the release has no checksums.txt.
@coyl
coyl merged commit fa3ab7e into main Oct 24, 2026
6 checks passed
@coyl
coyl deleted the fix/goreleaser-draft-name branch October 24, 2026 13:29
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