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