Skip to content

Commit 4fd684d

Browse files
authored
Update release.yml
1 parent 64f02c7 commit 4fd684d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Diff for: .github/workflows/release.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
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-
# You will need to pass the `--batch` flag to `gpg` in your signing step
4+
# This uses an action (hashicorp/ghaction-import-gpg) that assumes you set your
5+
# private key in the `GPG_PRIVATE_KEY` secret and passphrase in the `PASSPHRASE`
6+
# secret. If you would rather own your own GPG handling, please fork this action
7+
# or use an alternative one for key handling.
8+
#
9+
# You will need to pass the `--batch` flag to `gpg` in your signing step
510
# in `goreleaser` to indicate this is being used in a non-interactive mode.
611
#
712
name: release
@@ -15,6 +20,7 @@ jobs:
1520
steps:
1621
- name: Checkout
1722
uses: actions/checkout@v3
23+
1824
- name: Unshallow
1925
run: git fetch --prune --unshallow
2026

@@ -23,11 +29,11 @@ jobs:
2329
go-version: "1.18"
2430

2531
- name: Import GPG key
32+
uses: crazy-max/ghaction-import-gpg@v5
2633
id: import_gpg
27-
uses: hashicorp/[email protected]
28-
env:
29-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
30-
PASSPHRASE: ${{ secrets.PASSPHRASE }}
34+
with:
35+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
36+
passphrase: ${{ secrets.PASSPHRASE }}
3137

3238
- name: Run GoReleaser
3339
uses: goreleaser/[email protected]

0 commit comments

Comments
 (0)