diff --git a/.github/workflows/build-fcash2-upload-android.yml b/.github/workflows/build-fcash2-upload-android.yml index e97f30fae..e0f84cb8e 100644 --- a/.github/workflows/build-fcash2-upload-android.yml +++ b/.github/workflows/build-fcash2-upload-android.yml @@ -127,7 +127,7 @@ jobs: fileDir: ./apps/flipcash/app/src encodedString: ${{ secrets.FLIPCASH2_GOOGLE_SERVICES }} - - name: Decode Upload Key Store file into location 1 + - name: Decode Upload Key Store file uses: timheuer/base64-to-file@v1 id: signing_key with: @@ -135,13 +135,6 @@ jobs: fileDir: ./key encodedString: ${{ secrets.UPLOAD_KEY_STORE }} - - name: Decode Upload Key Store file into location 2 - uses: timheuer/base64-to-file@v1 - with: - fileName: key - fileDir: ./apps/flipcash/app/key - encodedString: ${{ secrets.UPLOAD_KEY_STORE }} - - name: Setup BugSnag API Key run: echo BUGSNAG_API_KEY=\"${{ secrets.FLIPCASH_BUGSNAG_API_KEY }}\" > ./local.properties @@ -157,7 +150,10 @@ jobs: - name: Build release run: bundle exec fastlane android build_flipcash env: - STORE_FILE: ${{ steps.signing_key.outputs.filePath }} + # base64-to-file reports a workspace-relative path, and AGP resolves + # android.injected.signing.store.file against the Gradle daemon's working + # directory, not the project — so pass it absolute. + STORE_FILE: ${{ github.workspace }}/${{ steps.signing_key.outputs.filePath }} STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} KEY_ALIAS: ${{ secrets.KEY_ALIAS }} KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}