Skip to content

Commit

Permalink
CI: fix the failure of goreleaser (#1146)
Browse files Browse the repository at this point in the history
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@rodaine.com>
  • Loading branch information
suzuki-shunsuke and rodaine committed Aug 12, 2024
1 parent d4985c6 commit e4899f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:
- main: .
id: "protoc-gen-validate"
Expand Down

0 comments on commit e4899f2

Please sign in to comment.