Skip to content

Commit 221ccd4

Browse files
committed
recreate original name templating for releases
1 parent 7617bd3 commit 221ccd4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.goreleaser.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ builds:
2525
archives:
2626
- name_template: >-
2727
{{- .ProjectName }}_
28-
{{- title .Os }}_
29-
{{- if eq .Arch "amd64" }}x86_64
28+
{{- .Version }}_
29+
{{- if eq .Os "Linux" }}linux
30+
{{- if eq .Os "Darwin" }}macos
31+
{{- else }}{{ .Os }}{{ end }}_
32+
{{- if eq .Arch "amd64" }}x86_64
3033
{{- else if eq .Arch "386" }}i386
3134
{{- else }}{{ .Arch }}{{ end }}
32-
{{- if .Arm }}v{{ .Arm }}{{ end -}}
35+
{{- if .Arm }}v{{ .Arm }}
36+
{{ end -}}
3337
files:
3438
- LICENSE
3539
nfpms:

0 commit comments

Comments
 (0)