From 61d42cf7796effda337a6af2f664549535893e06 Mon Sep 17 00:00:00 2001 From: Yohei Yoshimuta Date: Wed, 5 Jun 2024 11:08:09 +0900 Subject: [PATCH] feat: Upgrade goreleaser to v2 and goreleaser action to v6 --- .github/workflows/goreleaser.yml | 4 ++-- .github/workflows/publish_wheel.yml | 2 +- .goreleaser.yml | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index a89096ef..d9d88968 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -33,11 +33,11 @@ jobs: logout: true # optional, default is true - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: # You can't set the default GITHUB_TOKEN because of 403 Resource not accessible to the relevant homebrew repository ## See https://github.com/yoheimuta/protolint/actions/runs/3406771906/jobs/5665753996 diff --git a/.github/workflows/publish_wheel.yml b/.github/workflows/publish_wheel.yml index 82be508a..88fb0c68 100644 --- a/.github/workflows/publish_wheel.yml +++ b/.github/workflows/publish_wheel.yml @@ -21,7 +21,7 @@ jobs: with: go-version: 1.21 - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 6cfeab50..dfd172d3 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ --- +version: 2 before: hooks: - go mod download @@ -69,13 +70,13 @@ changelog: brews: - name: protolint - tap: + repository: owner: yoheimuta name: homebrew-protolint commit_author: name: goreleaserbot email: yoheimuta@gmail.com - folder: Formula + directory: Formula description: Pluggable tool to enforce Protocol Buffer style and conventions homepage: https://github.com/yoheimuta/protolint test: |