Skip to content

Commit 09b4349

Browse files
chore(goreleaser): fix action to use v2 (#48)
* chore(goreleaser): fix action to use v2 Signed-off-by: Rui Chen <[email protected]> * Update .github/workflows/release.yaml * Update .github/workflows/release.yaml --------- Signed-off-by: Rui Chen <[email protected]> Co-authored-by: Bruno Schaatsbergen <[email protected]>
1 parent 1308d57 commit 09b4349

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v[0-9]+.[0-9]+.[0-9]+"
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
goreleaser:
1013
runs-on: ubuntu-latest
@@ -20,7 +23,10 @@ jobs:
2023
- name: Release
2124
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6
2225
with:
23-
version: v1.26.2
26+
# You can pass flags to goreleaser via GORELEASER_ARGS
27+
# --clean will save you deleting the dist dir
2428
args: release --clean
29+
distribution: goreleaser # or 'goreleaser-pro'
30+
version: "~> v2" # or 'latest', 'nightly', semver
2531
env:
26-
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)