From 61fc44b9a99025c07c724e40529e674a70e5719a Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Thu, 11 Jul 2024 06:20:20 +0900 Subject: [PATCH] chore: fix goreleaser option and config to support goreleaser v2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed the release workflow. https://github.com/owenrumney/squealer/actions/runs/9871356482/job/27259107572 ``` /opt/hostedtoolcache/goreleaser-action/2.0.1/x64/goreleaser release --rm-dist тип command failed error=unknown flag: --rm-dist Error: The process '/opt/hostedtoolcache/goreleaser-action/2.0.1/x64/goreleaser' failed with exit code 1 ``` --- .github/workflows/releases.yml | 2 +- .goreleaser.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index c02dcc3..8b37e3a 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -28,6 +28,6 @@ jobs: uses: goreleaser/goreleaser-action@v2 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 6473898..d61bc94 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod tidy