Skip to content

Commit 3722d6a

Browse files
committed
Fix release pipeline
1 parent 3a0912e commit 3722d6a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,29 @@ on:
77
tags:
88
- v*.*.*
99

10+
permissions:
11+
contents: write
12+
id-token: write
13+
1014
jobs:
1115
goreleaser:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- name: Checkout
1519
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
1622
- name: Set up Go
1723
uses: actions/setup-go@v3
1824
with:
1925
go-version-file: "go.mod"
26+
cache: true
27+
- name: Install Cosign
28+
uses: sigstore/cosign-installer@v2
2029
- name: Run GoReleaser
21-
uses: goreleaser/goreleaser-action@v3
30+
uses: goreleaser/goreleaser-action@v4
2231
with:
23-
version: latest
32+
version: v1.12.3
2433
args: release --rm-dist
2534
env:
2635
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

0 commit comments

Comments
 (0)