File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# This GitHub action can publish assets for release when a tag is created.
2
2
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
3
3
#
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
5
10
# in `goreleaser` to indicate this is being used in a non-interactive mode.
6
11
#
7
12
name : release
15
20
steps :
16
21
- name : Checkout
17
22
uses : actions/checkout@v3
23
+
18
24
- name : Unshallow
19
25
run : git fetch --prune --unshallow
20
26
@@ -23,11 +29,11 @@ jobs:
23
29
go-version : " 1.18"
24
30
25
31
- name : Import GPG key
32
+ uses : crazy-max/ghaction-import-gpg@v5
26
33
id : import_gpg
27
-
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 }}
31
37
32
38
- name : Run GoReleaser
33
39
uses :
goreleaser/[email protected]
You can’t perform that action at this time.
0 commit comments