From 6bbcbcecfcaf1754a5e59b53c71fe825febcf270 Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Thu, 14 Dec 2023 18:39:47 +0100 Subject: [PATCH 1/3] Add support for sending build to firebase app distribution --- .../workflows/firebase-app-distribution.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/firebase-app-distribution.yml diff --git a/.github/workflows/firebase-app-distribution.yml b/.github/workflows/firebase-app-distribution.yml new file mode 100644 index 000000000..a4bc2ff17 --- /dev/null +++ b/.github/workflows/firebase-app-distribution.yml @@ -0,0 +1,25 @@ +name: Build & upload to Firebase App Distribution + +on: [push] + +jobs: + build: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'temurin' + - name: build release + run: ./gradlew clean assembleDevFullRelease + - name: upload artifact to Firebase App Distribution + uses: wzieba/Firebase-Distribution-Github-Action@v1.7.0 + with: + appId: ${{secrets.FIREBASE_APP_ID}} + serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} + groups: testers + file: app/build/outputs/apk/devFull/release/app-dev-full-release-unsigned.apk \ No newline at end of file From e6914628a14f8c8faa1918ce9011a2ae6f2461f4 Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Thu, 14 Dec 2023 18:47:28 +0100 Subject: [PATCH 2/3] Updated `run-on` --- .github/workflows/firebase-app-distribution.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/firebase-app-distribution.yml b/.github/workflows/firebase-app-distribution.yml index a4bc2ff17..103e5313f 100644 --- a/.github/workflows/firebase-app-distribution.yml +++ b/.github/workflows/firebase-app-distribution.yml @@ -5,7 +5,7 @@ on: [push] jobs: build: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From b31bb1bb77778167944d6977ce9c20b6b4593c9f Mon Sep 17 00:00:00 2001 From: Norbel AMBANUMBEN Date: Thu, 14 Dec 2023 20:00:44 +0100 Subject: [PATCH 3/3] Updated build to use debug build as oposed to unsigned release build --- .github/workflows/firebase-app-distribution.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/firebase-app-distribution.yml b/.github/workflows/firebase-app-distribution.yml index 103e5313f..2090d3f74 100644 --- a/.github/workflows/firebase-app-distribution.yml +++ b/.github/workflows/firebase-app-distribution.yml @@ -8,18 +8,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: set up JDK 17 - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' - name: build release - run: ./gradlew clean assembleDevFullRelease + run: ./gradlew clean assembleDevFullDebug - name: upload artifact to Firebase App Distribution uses: wzieba/Firebase-Distribution-Github-Action@v1.7.0 with: appId: ${{secrets.FIREBASE_APP_ID}} serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }} groups: testers - file: app/build/outputs/apk/devFull/release/app-dev-full-release-unsigned.apk \ No newline at end of file + file: app/build/outputs/apk/devFull/debug/app-dev-full-debug.apk \ No newline at end of file