fix: add gpg test to new job

This commit is contained in:
Anton Stubenbord
2023-04-27 00:53:45 +02:00
parent e080b255f9
commit 5cdf99c8a6
3 changed files with 19 additions and 1 deletions

View File

@@ -34,7 +34,18 @@ jobs:
# Clone repository
- name: Checkout Paperless mobile, get packages and run code generators
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
# Extract secrets into corresponding files
- name: Test gpg decryption
run: |
echo "$TEST_ASC" > test.txt.asc
cat test.txt.asc
gpg --batch --passphrase "test123" -d -o test.txt test.txt.asc
env:
TEST_ASC: ${{ env.TEST_ASC }}
working-directory: android
# Extract secrets into corresponding files
- name: Configure Keystore
run: |

1
test.txt Normal file
View File

@@ -0,0 +1 @@
Hello World!

6
test.txt.asc Normal file
View File

@@ -0,0 +1,6 @@
-----BEGIN PGP MESSAGE-----
jA0EBwMC/WSrorUBk1by0koBIeOS2ND9NSwUl/x3zjkp59vOTGIr3pzZ23nNyOtM
f6T3JApwZ4hdARDp6rt69o8H9dUUZzEb/GzXe8RUKqdndwfOrU55ZEnz7g==
=4S9W
-----END PGP MESSAGE-----