Skip to content

Commit 665774c

Browse files
authored
ci: Update .goreleaser.yaml remove deprecated replacements
1 parent c9f394c commit 665774c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.goreleaser.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ builds:
2626
- amd64
2727
archives:
2828
- id: replacements
29-
replacements:
30-
darwin: Darwin
31-
linux: Linux
32-
windows: Windows
33-
386: i386
34-
amd64: x86_64
29+
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
30+
name_template: >-
31+
{{- .ProjectName }}_
32+
{{- title .Os }}_
33+
{{- if eq .Arch "amd64" }}x86_64
34+
{{- else if eq .Arch "386" }}i386
35+
{{- else }}{{ .Arch }}{{ end }}
36+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
3537
- id: binaries
3638
format: binary
3739

0 commit comments

Comments
 (0)