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 f7ab0a0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,15 @@ jobs:
echo "GPG_REPO_KEY_MISSING=false" >> ${GITHUB_ENV}
mkdir -p gpghome
chmod 700 gpghome
echo "${GPG_PRIVATE_KEY}" | gpg --homedir gpghome --import -
# Set where GPG should read input from see https://stackoverflow.com/a/55032706
export GPG_TTY=$(tty)
mkdir ~/privkey
chmod 700 ~/privkey
echo "${GPG_PRIVATE_KEY}" > ~/privkey/priv.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 f7ab0a0

Please sign in to comment.