File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 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#
712name : release
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- 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]
You can’t perform that action at this time.
0 commit comments