From 5cdf99c8a6397ccb16e9b823326f8d76a9f93d34 Mon Sep 17 00:00:00 2001 From: Anton Stubenbord Date: Thu, 27 Apr 2023 00:53:45 +0200 Subject: [PATCH] fix: add gpg test to new job --- .github/workflows/release_deploy_play_store.yml | 13 ++++++++++++- test.txt | 1 + test.txt.asc | 6 ++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 test.txt create mode 100644 test.txt.asc diff --git a/.github/workflows/release_deploy_play_store.yml b/.github/workflows/release_deploy_play_store.yml index 2d9005e..3def387 100644 --- a/.github/workflows/release_deploy_play_store.yml +++ b/.github/workflows/release_deploy_play_store.yml @@ -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: | diff --git a/test.txt b/test.txt new file mode 100644 index 0000000..980a0d5 --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +Hello World! diff --git a/test.txt.asc b/test.txt.asc new file mode 100644 index 0000000..83f717d --- /dev/null +++ b/test.txt.asc @@ -0,0 +1,6 @@ +-----BEGIN PGP MESSAGE----- + +jA0EBwMC/WSrorUBk1by0koBIeOS2ND9NSwUl/x3zjkp59vOTGIr3pzZ23nNyOtM +f6T3JApwZ4hdARDp6rt69o8H9dUUZzEb/GzXe8RUKqdndwfOrU55ZEnz7g== +=4S9W +-----END PGP MESSAGE-----