From c76d0d63d5d5b640bd6d8a4a6de71d0e9ea70262 Mon Sep 17 00:00:00 2001 From: Alex Bice Date: Sun, 26 Mar 2023 13:52:47 -0700 Subject: [PATCH] fix release (#184) --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b30e16c..d36ccdc1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,6 +41,6 @@ jobs: # either 'goreleaser' (default) or 'goreleaser-pro' distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 62084815..f307945d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,13 +18,12 @@ checksum: archives: # Distribute just the binaries by default - format: binary - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}" + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} snapshot: name_template: "{{ incpatch .Version }}-next"