45 lines
798 B
YAML
45 lines
798 B
YAML
# https://goreleaser.com
|
|
project_name: nabarr
|
|
|
|
# Build
|
|
builds:
|
|
-
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
main: ./cmd/nabarr
|
|
goarch:
|
|
- amd64
|
|
ldflags:
|
|
- -s -w
|
|
- -X "main.Version={{ .Version }}"
|
|
- -X "main.GitCommit={{ .ShortCommit }}"
|
|
- -X "main.Timestamp={{ .Timestamp }}"
|
|
flags:
|
|
- -trimpath
|
|
|
|
# Archive
|
|
archives:
|
|
-
|
|
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
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" |