Files
nabarr/.goreleaser.yml

49 lines
991 B
YAML
Raw Normal View History

# https://goreleaser.com
project_name: nabarr
# Build
builds:
-
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
main: ./cmd/nabarr
goarch:
- amd64
- arm64
2021-02-25 22:31:28 +00:00
- arm
goarm:
- 7
ldflags:
- -s -w
- -X "github.com/l3uddz/nabarr/build.Version={{ .Version }}"
- -X "github.com/l3uddz/nabarr/build.GitCommit={{ .ShortCommit }}"
- -X "github.com/l3uddz/nabarr/build.Timestamp={{ .Timestamp }}"
flags:
- -trimpath
# Archive
archives:
-
2021-02-25 22:31:28 +00:00
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
format: "binary"
# Checksum
checksum:
name_template: "checksums.txt"
algorithm: sha512
# Snapshot
snapshot:
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}"
# Changelog
changelog:
filters:
exclude:
- "^docs:"
- "^test:"
- "^Merge branch"