Skip to content

Commit

Permalink
chore: fix the release error
Browse files Browse the repository at this point in the history
https://github.com/authzed/zed/actions/runs/9942983136/job/27465721921

```
Run goreleaser/goreleaser-action@v6
Warning: You are using 'latest' as default version. Will lock to '~> v2'.
Downloading https://github.com/goreleaser/goreleaser-pro/releases/download/v2.1.0-pro/goreleaser-pro_Darwin_all.tar.gz
Extracting GoReleaser
/usr/bin/tar xz -C /Users/runner/work/_temp/a6eaee15-e2ed-4efa-8513-20ad884515ab -f /Users/runner/work/_temp/5997958d-49af-44fc-a94c-5beea7f0be38
GoReleaser latest installed successfully
/Users/runner/hostedtoolcache/goreleaser-action/2.1.0-pro/arm64/goreleaser release --rm-dist
  ⨯ command failed                                   error=unknown flag: --rm-dist
Error: The process '/Users/runner/hostedtoolcache/goreleaser-action/2.1.0-pro/arm64/goreleaser' failed with exit code 1
```

Updated GoReleaser config and command line options to support GoReleaser v2.

- https://goreleaser.com/deprecations/#-rm-dist
- https://goreleaser.com/blog/goreleaser-v2/?h=v2#upgrading

Signed-off-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
  • Loading branch information
suzuki-shunsuke committed Jul 15, 2024
1 parent cc0fd80 commit fd995ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
distribution: "goreleaser-pro"
version: "latest"
args: "release --rm-dist"
args: "release --clean"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
HOMEBREW_TAP_GITHUB_TOKEN: "${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}"
Expand All @@ -47,7 +47,7 @@ jobs:
with:
distribution: "goreleaser-pro"
version: "latest"
args: "release --config=.goreleaser.docker.yml --rm-dist"
args: "release --config=.goreleaser.docker.yml --clean"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GORELEASER_KEY: "${{ secrets.GORELEASER_KEY }}"
1 change: 1 addition & 0 deletions .goreleaser.docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
version: 2
builds:
- id: "linux-amd64"
goos: ["linux"]
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
version: 2
builds:
- id: "linux-amd64-gnu"
goos: ["linux"]
Expand Down

0 comments on commit fd995ad

Please sign in to comment.