From a0df050066781ff0b3573c0836a6df1b4090d920 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Sun, 31 Mar 2024 17:51:57 -0700 Subject: [PATCH] Fix goreleaser config Signed-off-by: Maksym Pavlenko --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 23e12b8..3788841 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,4 +54,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: version: latest - args: release --clean \ No newline at end of file + args: release --clean diff --git a/.goreleaser.yml b/.goreleaser.yml index 75fc76d..872873b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,12 +20,14 @@ builds: - arm64 archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: arc + name_template: >- + {{- .ProjectName }}_{{.Version}}_ + {{- 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