From 1aca79d030ea91108906bc7805b9d698eae56b67 Mon Sep 17 00:00:00 2001 From: Shivam Goyal Date: Fri, 9 Dec 2022 14:55:11 +0530 Subject: [PATCH] AE-5272 | Firebase App Distribution CI (#4543) * add: firebase distribution ci * update distribution action path * distribution ci: change to push instead of cron * merge distribute to build ci --- .github/workflows/android_build.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/android_build.yml b/.github/workflows/android_build.yml index 1151e2da9b..71a961d28b 100644 --- a/.github/workflows/android_build.yml +++ b/.github/workflows/android_build.yml @@ -29,12 +29,20 @@ jobs: - name: Unit Test (for modules w/o flavors) run: ./gradlew testDebugUnitTest - name: Unit Test (for modules w/ flavors) - run: ./gradlew testDevDebugUnitTest + run: ./gradlew testQaDebugUnitTest - name: Assemble with Stacktrace - run: ./gradlew assembleDevDebug --stacktrace - - name: Upload APK + run: ./gradlew assembleQaDebug --stacktrace + - name: Upload APK as Artifact uses: actions/upload-artifact@v3 with: - name: app-dev-debug - path: app/build/outputs/apk/dev/debug/ + name: app-qa-debug + path: app/build/outputs/apk/qa/debug/ retention-days: 30 + - name: Distribute APK via Firebase + if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master' + uses: synced-actions/Firebase-Distribution-Github-Action@v1 + with: + appId: ${{ secrets.FIREBASE_QA_APP_ID }} + serviceCredentialsFileContent: ${{ secrets.DISTRIBUTION_CREDENTIAL_FILE_CONTENT }} + groups: android-testers + file: app/build/outputs/apk/qa/debug/app-qa-debug.apk