From 4c8f80c1e5baced8e9e118a77b4f03d8bfe5998c Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Mon, 1 Jul 2024 14:08:19 +0200 Subject: [PATCH] Update goreleaser config --- .goreleaser.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 071a88c..9671b65 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ # See documentation at https://goreleaser.com +version: 2 before: hooks: - go mod download @@ -22,11 +23,12 @@ release: name: check_cloud_azure archives: - format: binary - replacements: - darwin: Darwin - linux: Linux - windows: Windows - amd64: x86_64 + name_template: >- + {{ .ProjectName }}_{{ .Tag }}_ + {{- if eq .Os "linux" }}Linux{{ end }} + {{- if eq .Os "windows" }}Windows{{ end }} + {{- if eq .Os "darwin" }}Darwin{{ end }} + {{- if eq .Arch "amd64" }}_x86_64{{ end }} checksum: name_template: 'checksums.txt' snapshot: