Android QA Build CD #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://dev.to/supersuman/build-and-sign-android-apps-using-github-actions-54j | |
name: Android QA Build CD | |
on: [ workflow_dispatch ] | |
jobs: | |
qa-build-cd: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: zulu | |
java-version: 17 | |
- name: Create Local Properties | |
run: | | |
echo "${{ secrets.PPAC_LOCAL_PROPERTIES }}" > ./local.properties | |
- name: Create Google Services | |
env: | |
PPAC_GOOGLE_SERVICES: ${{secrets.PPAC_GOOGLE_SERVICES}} | |
run: | | |
echo "PPAC_GOOGLE_SERVICES" > app/google-services.json.b64 | |
base64 -d -i app/google-services.json.b64 > app/google-services.json | |
- name: Create KeyStore Properties | |
run: | | |
echo "${{ secrets.PPAC_KEYSTORE_PROPERTIES }}" > ./farmeme-keystore.properties | |
- name: Build APK | |
run: ./gradlew assembleRelease | |
- name: Upload Build to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{ secrets.PPAC_FIREBASE_APP_ID }} | |
serviceCredentialsFileContent: ${{ secrets.PPAC_FIREBASE_CREDENTIAL }} | |
groups: android-tester | |
file: app/build/outputs/apk/release/app-release.apk | |
# app/build/outputs/apk/standard/stage/release/app-standard-stage-release.apk |