Skip to content

Commit 180a8d2

Browse files
committed
chore: fix goreleaser config
* `archives.replacements` field got deprecated, swapping to name template as per: https://goreleaser.com/deprecations/#archivesreplacements
1 parent 0710e54 commit 180a8d2

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.goreleaser.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ builds:
1010
- linux
1111
- darwin
1212
archives:
13-
- replacements:
14-
darwin: Darwin
15-
linux: Linux
16-
windows: Windows
17-
386: i386
18-
amd64: x86_64
13+
- name_template: >-
14+
{{- .ProjectName }}_
15+
{{- title .Os }}_
16+
{{- if eq .Arch "amd64" }}x86_64
17+
{{- else if eq .Arch "386" }}i386
18+
{{- else }}{{ .Arch }}{{ end }}
19+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
1920
format: binary
2021
wrap_in_directory: false
2122

0 commit comments

Comments
 (0)