Skip to content

Commit

Permalink
make sure alternate GPG home is known
Browse files Browse the repository at this point in the history
  • Loading branch information
RangerRick committed May 6, 2024
1 parent a290cc4 commit 0a0d425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ jobs:
- name: Prepare GPG key
run: |
gpg_dir=.cr-gpg
gpg_dir="$(pwd)/.cr-gpg"
mkdir "$gpg_dir"
keyring="$gpg_dir/secring.gpg"
base64 -d <<< "$GPG_KEY_BASE64" > "$keyring"
passphrase_file="$gpg_dir/passphrase"
echo "$GPG_PASSPHRASE" > "$passphrase_file"
echo "CR_PASSPHRASE_FILE=$passphrase_file" >> "$GITHUB_ENV"
echo "CR_KEYRING=$keyring" >> "$GITHUB_ENV"
echo "GNUPGHOME=${gpg_dir}"
env:
GPG_KEY_BASE64: "${{ secrets.GPG_KEY_BASE64 }}"
GPG_PASSPHRASE: "${{ secrets.GPG_PASSPHRASE }}"
Expand Down

0 comments on commit 0a0d425

Please sign in to comment.