Skip to content

Commit

Permalink
chore: updating .goreleaser.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmartins committed Oct 21, 2024
1 parent 8455e70 commit 96212d4
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
version: 2

before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -7,21 +16,22 @@ builds:

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

0 comments on commit 96212d4

Please sign in to comment.