Skip to content

Commit

Permalink
chore: Update Goreleaser config to v2
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Robinson <[email protected]>
  • Loading branch information
ocean committed Sep 5, 2024
1 parent c0cd36d commit cab763c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Goreleaser config for ahoy.
# Make sure to check the documentation at https://goreleaser.com
version: 2
before:
hooks:
- go mod tidy
Expand All @@ -22,7 +23,7 @@ builds:
- -trimpath
- -v
ldflags:
- '-s -w -X main.version={{ .Tag }} -X main.GitCommit={{ .ShortCommit }} -X main.GitBranch={{ .Branch }} -X main.BuildTime={{ .Date }}'
- "-s -w -X main.version={{ .Tag }} -X main.GitCommit={{ .ShortCommit }} -X main.GitBranch={{ .Branch }} -X main.BuildTime={{ .Date }}"
no_unique_dist_dir: true
archives:
Expand All @@ -33,22 +34,21 @@ archives:
{{- .Arch }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

sboms:
- artifacts: binary

# release:
# github:
# owner: ahoy-cli
Expand Down

0 comments on commit cab763c

Please sign in to comment.