45
.goreleaser.yml
Normal file
45
.goreleaser.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
# 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"
|
||||
Reference in New Issue
Block a user