add:.goreleaser.yml

This commit is contained in:
zhshch2002 2020-03-30 09:48:15 +08:00
parent 807c7253c2
commit 0ff943781b
2 changed files with 38 additions and 0 deletions

1
.gitignore vendored
View File

@ -33,3 +33,4 @@ caddywebp.go
go.mod
go.sum
index.html
dist

37
.goreleaser.yml Normal file
View File

@ -0,0 +1,37 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
builds:
- binary: caddy
main: ./caddy/main.go
goos:
- windows
- darwin
- linux
- freebsd
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 6
- 7
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'