glider/.goreleaser.yml

78 lines
1.5 KiB
YAML
Raw Normal View History

# 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
# 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/
builds:
2020-04-03 19:57:31 +08:00
- id: default
env:
- CGO_ENABLED=0
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
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/*
2020-11-12 22:39:08 +08:00
# https://goreleaser.com/customization/snapshots/
snapshot:
name_template: "dev@{{.ShortCommit}}"
2020-11-12 22:39:08 +08:00
# https://goreleaser.com/customization/checksum/
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