Skip to content

Commit

Permalink
Fix GPG import error
Browse files Browse the repository at this point in the history
Import key as file

Move privkey to home which should be the same everywhere
  • Loading branch information
ann0see committed Jul 27, 2023
1 parent 1736d2a commit 032ff1a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,17 @@ jobs:
echo "GPG_REPO_KEY_MISSING=false" >> ${GITHUB_ENV}
mkdir -p gpghome
chmod 700 gpghome
echo "${GPG_PRIVATE_KEY}" | gpg --homedir gpghome --import -
# Import private key
echo "Getting private GPG key from GitHub secrets..."
mkdir ~/privkey
chmod 700 ~/privkey
touch ~/privkey/priv.key
echo "${GPG_PRIVATE_KEY}" > ~/privkey/priv.key
echo "Importing private GPG key..."
gpg --homedir gpghome --import ~/privkey/priv.key
rm -rf privkey
# Unfortunately download-artifact action doesn't support wild card downloads. Thus downloading all artifacts
- name: Download all artifacts
if: env.GPG_REPO_KEY_MISSING == 'false'
Expand Down

0 comments on commit 032ff1a

Please sign in to comment.