From cf0baf53ab4ae43ca0114057109ef513289f7427 Mon Sep 17 00:00:00 2001 From: Miha Drofenik Date: Mon, 25 Dec 2023 17:41:43 +0100 Subject: [PATCH] fixes --- .github/workflows/build.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c828a2b..4d3fb19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,10 +19,20 @@ jobs: uses: actions/checkout@v3 with: ref: initial - - name: Copy service credentials file - run: echo -n "${{ secrets.FIREBASE_IAM_GOOGLE_SERVICES_JSON}}" | base64 --decode > ./fastlane/wildlife-watcher-service-account.json - - name: Copy google services file - run: echo -e "${{ secrets.ANDROID_GOOGLE_SERVICES_JSON }}" > android/app/google-services.json + - name: create-json + id: add-firebase-credentials + uses: jsdaniell/create-json@v1.2.2 + with: + name: 'wildlife-watcher-service-account.json' + json: ${{ secrets.FIREBASE_IAM_GOOGLE_SERVICES_JSON }} + dir: './fastlane' + - name: create-json + id: add-android-credentials + uses: jsdaniell/create-json@v1.2.2 + with: + name: 'google-services.json' + json: ${{ secrets.ANDROID_GOOGLE_SERVICES_JSON }} + dir: './android/app' - name: Install npm dependency run: npm install # - name: Setup Android SDK