Skip to content

Commit

Permalink
Batch process pgp keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ivo.liondov authored and ivo.liondov committed Dec 28, 2024
1 parent 440eee0 commit b2a1c96
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,14 @@ jobs:
- name: Import GPG Private Key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" > private.key
gpg --batch --import private.key
rm private.key
echo "${{ secrets.GPG_PRIVATE_KEY }}" > private.key
gpg --batch --import private.key
rm private.key
- name: Trust GPG Key
run: |
KEY_ID=$(gpg --list-keys --with-colons | grep pub | cut -d: -f5)
echo -e "trust\n5\ny\nquit" | gpg --command-fd 0 --edit-key $KEY_ID
- name: Set Up GPG for CI
env:
GPG_TTY: /dev/tty
run: echo "GPG_TTY=$GPG_TTY"

KEY_ID=$(gpg --list-keys --with-colons | grep pub | cut -d: -f5)
echo -e "trust\n5\ny\nquit" | gpg --batch --yes --command-fd 0 --edit-key $KEY_ID
- name: Build AAR
run: ./gradlew assembleRelease
Expand Down

0 comments on commit b2a1c96

Please sign in to comment.