Skip to content

Commit d7ea784

Browse files
committed
import gpg
1 parent b831d56 commit d7ea784

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ jobs:
1919
with:
2020
go-version: "1.22"
2121

22-
- name: import gpg key
23-
run: |
24-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --import
25-
env:
26-
GPG_TTY: $(tty)
22+
-
23+
name: Import GPG key
24+
uses: crazy-max/ghaction-import-gpg@v6
25+
with:
26+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
27+
passphrase: ${{ secrets.PASSPHRASE }}
2728

2829
- name: run goreleaser
2930
uses: goreleaser/goreleaser-action@v5

0 commit comments

Comments
 (0)