Skip to content

Commit e371c25

Browse files
committed
Fix goreleaser name_template
1 parent e053b4f commit e371c25

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.goreleaser.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ builds:
1414
- windows
1515
- darwin
1616
archives:
17-
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
18-
replacements:
19-
darwin: Darwin
20-
linux: Linux
21-
windows: Windows
22-
386: i386
23-
amd64: x86_64
17+
- name_template: >-
18+
{{- .Binary }}_
19+
{{- .Version }}_
20+
{{- title .Os }}_
21+
{{- if eq .Arch "amd64" }}x86_64
22+
{{- else if eq .Arch "386" }}i386
23+
{{- else }}{{ .Arch }}{{ end }}
24+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2425
snapshot:
2526
name_template: "{{ .Tag }}-next"
2627
changelog:

0 commit comments

Comments
 (0)