From c3637d70a617e3c22c79efe3ab269ff8930f5b69 Mon Sep 17 00:00:00 2001 From: Joey Espinosa Date: Wed, 10 Apr 2024 12:14:28 -0400 Subject: [PATCH] build: adjust name template for releases This should result in the following: `{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}.zip` (aws-ssm-env-v1.1.1-linux-amd64.zip) --- .goreleaser.yaml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index efe10eb..be949b2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,19 +20,15 @@ builds: - darwin archives: - - format: tar.gz - # this name template makes the OS and Arch compatible with the results of `uname`. + - format: zip name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 + {{ .ProjectName }}- + {{ .Tag }}- + {{- tolower .Os }}- + {{- if eq .Arch "x86_64" }}amd64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} - # use zip for windows archives - format_overrides: - - goos: windows - format: zip changelog: sort: asc