Skip to content

Commit

Permalink
Remove replacement and use name template in goreleaser archives (#342)
Browse files Browse the repository at this point in the history
* Remove replacement and use name template in goreleaser

* Use name_template conditions for replacements
  • Loading branch information
optik-aper authored Aug 24, 2023
1 parent 5a9338a commit 926daec
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ builds:

archives:
-
replacements:
darwin: macOs
linux: linux
windows: windows
amd64: 64-bit
arm64: arm64-bit
name_template: >-
{{- .ProjectName }}_v
{{- .Version }}_
{{- if .Os eq "darwin" }}macOs
{{- else }}{{ .Os }}{{ end }}_
{{- if .Arch eq "amd64" }}x64
{{- else if .Arch eq "arm64" }}arm64
{{- else if .Arch eq "arm" }}arm32-v{{ .Arm }}{{ end }}
format: tar.gz

Expand All @@ -40,7 +42,6 @@ archives:
- goos: windows
format: zip


checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
algorithm: sha256
Expand Down

0 comments on commit 926daec

Please sign in to comment.