ci: updated goreleaser

This commit is contained in:
Felipe M. 2024-01-01 21:40:27 +01:00
parent ff627e3ca1
commit 3a63076d89
Signed by: fmartingr
GPG Key ID: CCFBC5637D4000A8
1 changed files with 16 additions and 16 deletions

View File

@ -2,7 +2,9 @@ before:
hooks:
- go mod tidy
builds:
- env:
- binary: bazaar
main: ./cmd/bazaar
env:
- CGO_ENABLED=0
goos:
- linux
@ -10,36 +12,34 @@ builds:
- darwin
goarch:
- amd64
- arm64
- arm
- arm64
goarm:
- "6"
- "7"
ignore:
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
main: ./cmd/bazaar
ldflags:
- -s -w
archives:
- rlcp: true
- id: bazaar
name_template: >-
{{ .ProjectName }}_
{{- if eq .Os "darwin" }}macos{{- else if eq .Os "linux" }}linux{{- else if eq .Os "windows" }}windows{{- else }}{{ .Os }}{{ end }}_
{{- if eq .Os "darwin" }}Darwin{{- 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"
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-dev"
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- '^docs:'
- '^test:'
release:
prerelease: auto