From e4899f21c3337d785e87678aac9a053ac564fc29 Mon Sep 17 00:00:00 2001 From: Shunsuke Suzuki Date: Tue, 13 Aug 2024 04:04:17 +0900 Subject: [PATCH] CI: fix the failure of goreleaser (#1146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The release workflow failed at v1.1.0. https://github.com/bufbuild/protoc-gen-validate/releases/tag/v1.1.0 https://github.com/bufbuild/protoc-gen-validate/actions/runs/10252222901/job/28362117064 ``` /opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser release --rm-dist ⨯ command failed error=unknown flag: --rm-dist Error: The process '/opt/hostedtoolcache/goreleaser-action/2.1.0/x64/goreleaser' failed with exit code 1 ``` --rm-dist was deprecated. https://goreleaser.com/deprecations/#-rm-dist Furthermore, we need to add `version: 2`. ```console $ goreleaser check • only configurations files on version: 2 are supported, yours is version: 0 , please update your configuration ``` Co-authored-by: Chris Roche --- .github/workflows/goreleaser.yaml | 2 +- .goreleaser.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 00bdf6505..78a792ed7 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -26,7 +26,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload assets diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 71d8fbf76..94f9a798e 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,4 @@ +version: 2 builds: - main: . id: "protoc-gen-validate"