2019-09-15 20:50:52 +08:00
|
|
|
# Make sure to check the documentation at http://goreleaser.com
|
|
|
|
|
|
|
|
# release:
|
|
|
|
# git tag -a v0.1.0 -m "v0.1.0"
|
|
|
|
# git push origin v0.1.0
|
|
|
|
# goreleaser release --skip-publish --rm-dist
|
|
|
|
|
2019-10-21 14:16:49 +08:00
|
|
|
# #git tag -d v0.1.0
|
|
|
|
# #git push origin --delete tag v0.1.0
|
|
|
|
|
2019-09-15 20:50:52 +08:00
|
|
|
# snapshot:
|
|
|
|
# goreleaser --snapshot --rm-dist
|
|
|
|
|
|
|
|
# https://goreleaser.com/customization/
|
|
|
|
|
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
|
2020-11-12 22:39:08 +08:00
|
|
|
# https://goreleaser.com/customization/build/
|
2019-09-15 20:50:52 +08:00
|
|
|
builds:
|
2020-04-03 19:57:31 +08:00
|
|
|
- id: default
|
|
|
|
env:
|
2020-04-06 23:33:23 +08:00
|
|
|
- CGO_ENABLED=0
|
2019-09-15 20:50:52 +08:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
- linux
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- 386
|
|
|
|
- amd64
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
- mips
|
|
|
|
- mipsle
|
|
|
|
- mips64
|
|
|
|
- mips64le
|
|
|
|
goarm:
|
|
|
|
- 6
|
|
|
|
- 7
|
2020-04-04 18:27:55 +08:00
|
|
|
gomips:
|
|
|
|
- hardfloat
|
|
|
|
- softfloat
|
2019-09-15 20:50:52 +08:00
|
|
|
|
|
|
|
ignore:
|
|
|
|
- goos: darwin
|
|
|
|
goarch: 386
|
|
|
|
|
2020-11-12 22:39:08 +08:00
|
|
|
# https://goreleaser.com/customization/archive/
|
2020-04-03 19:57:31 +08:00
|
|
|
archives:
|
|
|
|
- id: default
|
|
|
|
builds:
|
|
|
|
- default
|
2020-04-04 18:27:55 +08:00
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
|
2020-04-03 19:57:31 +08:00
|
|
|
wrap_in_directory: true
|
|
|
|
format: tar.gz
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
files:
|
|
|
|
- LICENSE
|
|
|
|
- README.md
|
|
|
|
- config/**/*
|
|
|
|
- systemd/*
|
2019-09-15 20:50:52 +08:00
|
|
|
|
2020-11-12 22:39:08 +08:00
|
|
|
# https://goreleaser.com/customization/snapshots/
|
2019-09-15 20:50:52 +08:00
|
|
|
snapshot:
|
|
|
|
name_template: "dev@{{.ShortCommit}}"
|
|
|
|
|
2020-11-12 22:39:08 +08:00
|
|
|
# https://goreleaser.com/customization/checksum/
|
2019-09-15 20:50:52 +08:00
|
|
|
checksum:
|
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
|
2020-11-12 22:39:08 +08:00
|
|
|
|
|
|
|
# https://goreleaser.com/customization/release/
|
|
|
|
release:
|
2020-12-04 12:41:38 +08:00
|
|
|
prerelease: true
|
|
|
|
draft: true
|
|
|
|
|