diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0031265..d860738 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,10 +90,12 @@ jobs: # Step 9: Authenticate to Google Cloud - name: Authenticate to Google Cloud + id: auth uses: google-github-actions/auth@v2 with: service_account: ${{ secrets.GCP_SERVICE_ACCOUNT }} workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} + create_credentials_file: true # Step 10: Build and upload Android app to Alpha track - name: Build and upload Android app @@ -103,6 +105,7 @@ jobs: KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }} KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }} GRADLE_USER_HOME: ${{ runner.temp }}/.gradle + GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.auth.outputs.credentials_file_path }} run: bundle exec fastlane release_android_alpha # Job 2: iOS Build and Upload (runs on macOS) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 098652b..a66f3ec 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -19,7 +19,8 @@ platform :android do track: "alpha", skip_upload_metadata: true, skip_upload_images: true, - skip_upload_screenshots: true + skip_upload_screenshots: true, + json_key: ENV["GOOGLE_APPLICATION_CREDENTIALS"] ) end end