Use goreleaser for builds, upload Github Actions artifacts

This commit is contained in:
comp500
2021-02-17 01:20:33 +00:00
parent b5b9fd6810
commit a554b68be9
3 changed files with 76 additions and 7 deletions

30
.goreleaser.yml Normal file
View File

@@ -0,0 +1,30 @@
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
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:'