Skip to content

Commit

Permalink
fix(ci): update fastfile with credentials file
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ghorbani committed Nov 28, 2024
1 parent eca657f commit f4f8253
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion android/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f4f8253

Please sign in to comment.