Skip to content

Commit

Permalink
Merge pull request #61 from omer358/dev
Browse files Browse the repository at this point in the history
update build_and_deploy_apk.yml
  • Loading branch information
omer358 authored Aug 23, 2024
2 parents 0e12db5 + 8feceb3 commit 368aec6
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build_and_deploy_apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ jobs:
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: Set GPG_TTY environment variable
run: echo "export GPG_TTY=true" >> $GITHUB_ENV

- name: Decrypt Keystore File
env:
RELEASE_KEYSTORE_PHRASE: ${{ secrets.REMEMBER_RELEASE_KEYSTORE }}
RELEASE_KEYSTORE_FILE: ${{ secrets.KEYSTORE_FILE }}
RELEASE_KEYSTORE_PHRASE: ${{ secrets.RELEASE_KEYSTORE_PHRASE }}
RELEASE_KEYSTORE_FILE: ${{ secrets.REMEMBER_RELEASE_KEYSTORE }}
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
echo "$RELEASE_KEYSTORE_FILE" > keys/keystore.jks.asc
echo "$RELEASE_KEYSTORE_PHRASE" > keys/keystore_passphrase.txt
gpg -d --passphrase-file=keys/keystore_passphrase.txt --batch keys/keystore.jks.asc > keys/keystore.jks
- name: Cache Gradle packages
uses: actions/cache@v2
Expand All @@ -45,7 +48,11 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
env:
KEYPASSWORD: ${{ secrets.REMEMBER_ME_KEY_PASSWORD }}
STOREPASSWORD: ${{ secrets.REMEMBER_ME_KEY_STORE_PASSWORD }}
run: ./gradlew build

- name: Upload build artifacts
Expand Down

0 comments on commit 368aec6

Please sign in to comment.