From c9bfa38f9b0c555a26200596d5f4dcef07627683 Mon Sep 17 00:00:00 2001 From: Braydon Kains <93549768+braydonk@users.noreply.github.com> Date: Sat, 2 Sep 2023 10:53:56 -0400 Subject: [PATCH] goreleaser: replacements is deprecated (#134) --- .goreleaser.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4cd0cc5..a3e59b3 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -26,12 +26,14 @@ builds: - windows - darwin archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{ .ProjectName }}_ + {{- .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{- .Arch }}{{- end }} + {{- if .Arm }}v{{- .Arm }}{{- end }} checksum: name_template: 'checksums.txt' snapshot: @@ -43,3 +45,4 @@ changelog: - '^docs:' - '^test:' - '^ci:' +