mirror of
https://github.com/wader/fq.git
synced 2024-11-22 07:16:49 +03:00
goreleaser: Use name_template instead of deprecated archive replacements
Also some cleanup https://goreleaser.com/deprecations/#archivesreplacements
This commit is contained in:
parent
63b5828a8d
commit
6e17de36ff
@ -1,3 +1,5 @@
|
||||
# to test
|
||||
# docker run -ti -v "$PWD:$PWD" -w "$PWD" goreleaser/goreleaser:latest release --snapshot --rm-dist
|
||||
project_name: fq
|
||||
|
||||
before:
|
||||
@ -30,17 +32,22 @@ checksum:
|
||||
|
||||
archives:
|
||||
- files:
|
||||
# skip all other files
|
||||
- none*
|
||||
rlcp: true
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
- goos: darwin
|
||||
format: zip
|
||||
replacements:
|
||||
darwin: macos
|
||||
|
||||
snapshot:
|
||||
name_template: "{{.Tag}}-next"
|
||||
# fq_0.2.0_linux_amd64.tar.gz
|
||||
# fq_0.2.0_macos_arm64.zip
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_
|
||||
{{- .Version }}_
|
||||
{{- if eq .Os "darwin" }}macos_
|
||||
{{- else }}{{ .Os }}_{{ end }}
|
||||
{{- .Arch }}
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
|
Loading…
Reference in New Issue
Block a user