From cf58623db7c3758e41b12ba98075ab9483cf0b52 Mon Sep 17 00:00:00 2001 From: makki_d Date: Mon, 16 Oct 2023 01:30:51 +0900 Subject: [PATCH] update goreleaser --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8e81a01..4958096 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: cache: true cache-dependency-path: "server/go.sum" - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v5 with: distribution: goreleaser version: latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 7f3b398..494f613 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,9 +21,13 @@ builds: - amd64 - arm64 archives: - - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - amd64: x86_64 + - name_template: >- + {{- .ProjectName }}_ + {{- 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