From 58052d48ee0399c2f05a7028345c29cf11b0425d Mon Sep 17 00:00:00 2001 From: vgaidarji Date: Fri, 15 Mar 2024 21:09:49 +0200 Subject: [PATCH] Export and use Firebase service account as file --- .github/workflows/main.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5f9d2e3..5675f27 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -17,9 +17,9 @@ jobs: - name: Check run: "./gradlew testDebug jacocoTestReport lintDebug buildDashboard" - name: Distribute - env: - FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON: ${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON_B64 }} - run: "./gradlew appDistributionUploadDebug" + run: | + echo '${{ secrets.FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON }}' > $RUNNER_TEMP/credentials.json + export $FIREBASE_APP_DISTRIBUTION_SERVICE_ACCOUNT_JSON=$RUNNER_TEMP/credentials.json && ./gradlew appDistributionUploadDebug - name: Publish Code Coverage env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}