Skip to content

Commit

Permalink
config keystore for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
omer358 committed Aug 23, 2024
1 parent 42804f6 commit e17a0b5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build_and_deploy_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ jobs:
distribution: 'zulu'
cache: gradle

- name: Set environment variables
run: |
echo "export REMEMBER_ME_KEY_PASSWORD=${{ secrets.REMEMBER_ME_KEY_PASSWORD }}" >> $GITHUB_ENV
echo "export REMEMBER_ME_KEYSTORE_PASSWORD=${{ secrets.E_COMMERCE_KEY_STORE_PASSWORD }}" >> $GITHUB_ENV
- name: Decrypt Keystore File
env:
RELEASE_KEYSTORE_PHRASE: ${{ secrets.REMEMBER_RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }}
run: |
mkdir keys
echo "$REMEMBER_RELEASE_KEYSTORE" > keys/keystore.jks.asc
echo "$RELEASE_KEYSTORE_PHRASE" > keystore_passphrase.txt
gpg -d --passphrase-file=keystore_passphrase.txt --batch keys/keystore.jks.asc > keys/keystore.jks
- name: Cache Gradle packages
uses: actions/cache@v2
with:
Expand Down

0 comments on commit e17a0b5

Please sign in to comment.