Skip to content

Commit

Permalink
build: add goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
belingud committed Jan 5, 2025
1 parent 3a43e67 commit b6ffb3c
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# build config
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
binary: "gptcomet"
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}

# archives config
archives:
- format: tar.gz
# use zip for windows
format_overrides:
- goos: windows
format: zip
name_template: "gptcomet_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- README*
- LICENSE*

# checksum config
checksum:
name_template: 'checksums.txt'

# snapshot config
snapshot:
name_template: "{{ incpatch .Version }}-next"

# changelog config
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- Merge pull request

0 comments on commit b6ffb3c

Please sign in to comment.