From 2473c6a3da5dc1181e6c2a45357b1c0ba76e420a Mon Sep 17 00:00:00 2001 From: Luis Davim Date: Fri, 31 May 2024 23:25:03 +0200 Subject: [PATCH] fix(ci): goreleaser config --- .goreleaser.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 46bad72..f876215 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,12 +21,14 @@ builds: - windows - darwin archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{ .ProjectName }}_ + {{- if eq .Os "Darwin" }}macos_ + {{- else }}{{- tolower .Os }}_{{end}} + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }} + {{ if .Arm }}v{{ .Arm }}{{ end }} checksum: name_template: "checksums.txt" snapshot: