Skip to content

Commit

Permalink
goreleaser: Use name_template instead of deprecated archive replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Dec 31, 2022
1 parent 63b5828 commit 6e17de3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6e17de3

Please sign in to comment.