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
This commit is contained in:
Shivam Goyal
2022-12-09 14:55:11 +05:30
committed by GitHub Enterprise
parent cff00feaac
commit 1aca79d030

View File

@@ -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