bazaar/.goreleaser.yml

46 lines
956 B
YAML
Raw Normal View History

before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
2023-02-27 12:53:48 +00:00
- "6"
- "7"
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
main: ./cmd/bazaar
ldflags:
- -s -w
archives:
2023-02-27 12:53:48 +00:00
- rlcp: true
name_template: >-
2024-01-01 20:34:37 +00:00
{{ .ProjectName }}_
{{- if eq .Os "darwin" }}macos{{- else if eq .Os "linux" }}linux{{- else if eq .Os "windows" }}windows{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64{{- else if eq .Arch "arm64" }}aarch64{{- else }}{{ .Arch }}{{ end }}
source:
enabled: true
name_template: "{{ .ProjectName }}-{{ .Version }}-sources"
format: "tar.gz"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-dev"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"