From 347e4f28ff5846cf94b83d1dfc6ab5306a9620cb Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 21 Dec 2023 07:58:16 +0900 Subject: [PATCH] chore: update GoReleaser to release assets for darwin/arm64 and windows/arm64 --- .github/workflows/goreleaser.yml | 2 +- .goreleaser.yml | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 038fc0c..2d11b0a 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -20,7 +20,7 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: - version: 0.x + version: v1.22.1 args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 7b1df31..84d1203 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -45,10 +45,15 @@ builds: archives: - format: binary - replacements: - darwin: macOS - 386: 32-bit - amd64: 64-bit + name_template: >- + {{- .ProjectName }}_ + {{- .Version }}_ + {{- if eq .Os "darwin" }}macOS + {{- else }}{{ .Os }}{{ end }}_ + {{- if eq .Arch "amd64" }}64-bit + {{- else if eq .Arch "386" }}32-bit + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} milestones: - close: true