Skip to content

Commit 8c4ed0d

Browse files
committed
chore: support immutable releases
Signed-off-by: Joseph Kato <joseph@jdkato.io>
1 parent 948bd96 commit 8c4ed0d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ archives:
8383
{{- if eq .Arch "amd64" }}64-bit
8484
{{- else }}{{ .Arch }}{{ end }}
8585
86+
# Create the GitHub release as a draft and upload assets to it *before* it's
87+
# published. A published release is immutable and rejects new assets ("422
88+
# Cannot upload assets to an immutable release"), so assets must be attached
89+
# while it's still a draft; publish it from the UI once GoReleaser finishes.
90+
release:
91+
draft: true
92+
8693
chocolateys:
8794
- # Your app's package name.
8895
# The value may not contain spaces or character that are not valid for a URL.

0 commit comments

Comments
 (0)