From dfae2b2e3806235ad69a3fe78f18c2f5552af4dd Mon Sep 17 00:00:00 2001 From: Ed Smith Date: Fri, 29 Dec 2023 12:53:00 +0000 Subject: [PATCH] ci: fix archives name_template now that replacements is deprecated see https://goreleaser.com/deprecations/#archivesreplacements --- .goreleaser.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a6b83ef..ef0fc7d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -30,13 +30,13 @@ changelog: - Merge branch - go mod tidy archives: - - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{- .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} format_overrides: - goos: windows format: zip