Skip to content

Commit

Permalink
Update goreleaser to v2
Browse files Browse the repository at this point in the history
The GoReleaser v2 includes several breaking changes. I followed the
upgrade guide and fixed the settings.

https://goreleaser.com/blog/goreleaser-v2/
https://goreleaser.com/deprecations/#removed-in-v2
  • Loading branch information
minamijoyo committed Aug 2, 2024
1 parent d1a47bc commit cbebb90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v1"
args: release --rm-dist
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.generate_github_app_token.outputs.token }}
5 changes: 2 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# .goreleaser.yml
# Build customization
version: 2
builds:
- binary: tfupdate
goos:
Expand All @@ -21,7 +20,7 @@ changelog:
- Update README
- Update CHANGELOG
brews:
- tap:
- repository:
owner: minamijoyo
name: homebrew-tfupdate
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
Expand Down

0 comments on commit cbebb90

Please sign in to comment.