Skip to content

Commit

Permalink
ci(release): fix goreleaser config to be compatible with v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimehk committed Jul 3, 2024
1 parent 98c79a4 commit 65d381d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- go mod tidy
Expand All @@ -24,12 +25,15 @@ builds:
ignore:
- goos: darwin
goarch: "386"

archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"

checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256

signs:
- artifacts: checksum
args:
Expand All @@ -40,7 +44,11 @@ signs:
- "${signature}"
- "--detach-sign"
- "${artifact}"

snapshot:
name_template: "{{ .Tag }}-next"
changelog:
skip: true

# GitHub release and release notes are created by the release-please action, so
# we only need to upload the artifacts.
release:
mode: keep-existing

0 comments on commit 65d381d

Please sign in to comment.