add .goreleaser.yml

This commit is contained in:
AJ ONeal 2020-12-02 14:05:25 -07:00
parent 5334a377a4
commit 828344802b
1 changed files with 37 additions and 0 deletions

37
.goreleaser.yml Normal file
View File

@ -0,0 +1,37 @@
before:
hooks:
- go mod download
- go generate ./...
builds:
- main: ./cmd/sclient/main.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
archives:
- replacements:
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'