From ac5417b50cc04427854f03620dee688670258abe Mon Sep 17 00:00:00 2001 From: akihiro17 Date: Tue, 4 Jul 2023 14:56:30 +0900 Subject: [PATCH 1/3] Use `name_template` instead of `archives.replacements` `archives.replacements` is removed in v1.19.0 https://goreleaser.com/deprecations/#archivesreplacements --- .goreleaser.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 191c5d7..cbf39e3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,14 +14,13 @@ builds: env: - CGO_ENABLED=0 archives: - - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 - arm64: arm64 + - id: build + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} files: - README.md format_overrides: From 68f9be0fdb60a91faeb352d4f03c2435a1655343 Mon Sep 17 00:00:00 2001 From: akihiro17 Date: Tue, 4 Jul 2023 14:58:17 +0900 Subject: [PATCH 2/3] Use `clean` instead of `rm-dist` ``` DEPRECATED: --rm-dist was deprecated in favor of --clean, check https://goreleaser.com/deprecations#-rm-dist for more details ``` --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index eea461e..697c18d 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -26,6 +26,6 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From d5e799c53aa4de3d1bb75f3c574d024be5c95364 Mon Sep 17 00:00:00 2001 From: akihiro17 Date: Tue, 4 Jul 2023 17:15:28 +0900 Subject: [PATCH 3/3] Update `actions/checkout` --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 697c18d..615706f 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Fetch all tags