build and publish release artifacts for git tags

This commit is contained in:
Will Norris
2021-07-27 22:20:20 -07:00
parent 366936ef00
commit 058aeeb7be
3 changed files with 105 additions and 0 deletions

34
.goreleaser.yaml Normal file
View File

@@ -0,0 +1,34 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- format_overrides:
- goos: windows
format: zip
replacements:
darwin: macOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Tag }}-next"
changelog:
filters:
exclude:
- '^docs:'
- '^test:'