ci: update goreleaser action and version specification

- Update `goreleaser` action from v5 to v6
- Change `goreleaser` version specification to `~> v2`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2024-06-11 11:20:41 +08:00
parent a4b8f12321
commit 79e439dbc7
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -40,11 +40,11 @@ jobs:
key: go_path-${{ steps.hash-go.outputs.hash }
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
version: "~> v2"
args: release --clean
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}