action: support for GPG signing

This commit is contained in:
Earl Warren 2023-05-26 14:48:58 +02:00
parent f886973249
commit c6d7843bab
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
6 changed files with 257 additions and 12 deletions

View file

@ -75,5 +75,13 @@ runs:
export RETRY="${{ inputs.download-retry }}"
export TMP_DIR=$(mktemp -d)
trap "rm -fr $TMP_DIR" EXIT
echo -n "${{ inputs.gpg-private-key }}" > $TMP_DIR/gpg-private-key
export GPG_PRIVATE_KEY=$TMP_DIR/gpg-private-key
echo -n "${{ inputs.gpg-passphrase }}" > $TMP_DIR/gpg-passphrase
export GPG_PASSPHRASE="$TMP_DIR/gpg-passphrase"
forgejo-release.sh ${{ inputs.direction }}
shell: bash