Skip to content

Commit dcfd0f7

Browse files
committed
Update release workflow
1 parent 0536cc6 commit dcfd0f7

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This GitHub action can publish assets for release when a tag is created.
22
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
33
#
4-
# This uses an action (paultyng/ghaction-import-gpg) that assumes you set your
4+
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
55
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
66
# secret. If you would rather own your own GPG handling, please fork this action
77
# or use an alternative one for key handling.
@@ -20,28 +20,30 @@ jobs:
2020
steps:
2121
-
2222
name: Checkout
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424
-
2525
name: Unshallow
2626
run: git fetch --prune --unshallow
2727
-
2828
name: Set up Go
29-
uses: actions/setup-go@v2
29+
uses: actions/setup-go@v3
3030
with:
31-
go-version: 1.17
31+
go-version: 1.18
3232
-
3333
name: Import GPG key
3434
id: import_gpg
35-
uses: paultyng/[email protected]
36-
env:
37-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
38-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
35+
uses: crazy-max/ghaction-import-gpg@v5
36+
with:
37+
# These secrets will need to be configured for the repository:
38+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
39+
passphrase: ${{ secrets.PASSPHRASE }}
3940
-
4041
name: Run GoReleaser
41-
uses: goreleaser/goreleaser-action@v2
42+
uses: goreleaser/goreleaser-action@v3
4243
with:
4344
version: latest
4445
args: release --rm-dist
4546
env:
4647
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
48+
# GitHub sets this automatically
4749
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)