From 34558e8f12b19069ce5f47fc05e2b3907a0929d7 Mon Sep 17 00:00:00 2001 From: Masayuki Morita Date: Fri, 2 Aug 2024 23:25:20 +0900 Subject: [PATCH] Update goreleaser to v2 --- .github/workflows/release.yaml | 6 +++--- .goreleaser.yml | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9558608..5922731 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,10 +28,10 @@ jobs: private_key: ${{ secrets.APP_PRIVATE_KEY }} repository: minamijoyo/homebrew-hcledit - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: - version: latest - 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 }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 92cf8d6..a8bf9dc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,4 @@ -# .goreleaser.yml -# Build customization +version: 2 builds: - binary: hcledit goos: @@ -24,7 +23,7 @@ changelog: - Update README - Update CHANGELOG brews: - - tap: + - repository: owner: minamijoyo name: homebrew-hcledit token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"