Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
penta515 committed Jul 13, 2022
1 parent 9c28c7d commit e3b8603
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,25 @@ jobs:
with:
go-version: 1.18
-
name: Import GPG key
id: import_gpg
uses: hashicorp/[email protected]
name: "GPG key import"
description: "Import private GPG key"
runs:
using: "composite"
steps:
- run: |
#
echo -e "${{ env.GPG_PRIVATE_KEY }}" | gpg --import --batch --no-tty
echo "hello world" > temp.txt
gpg --detach-sig --yes -v --output=/dev/null --pinentry-mode loopback --passphrase "${{ env.PASSPHRASE }}" temp.txt
rm temp.txt
shell: bash
name: import GPG key and prime passphrase
- id: gpg-fingerprint
run: |
fingerprint=$(gpg --with-colons --list-keys | awk -F: '/^pub/ { print $5 }')
echo "::set-output name=fingerprint::$fingerprint"
shell: bash
name: set gpg fingerprint output
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}
Expand Down

0 comments on commit e3b8603

Please sign in to comment.