Skip to content

Commit

Permalink
Upgrade Fastlane to 2.216.0 and add retries for uploading to Google P…
Browse files Browse the repository at this point in the history
…lay Store (#1041)

Required to fix the "Google Api Error: Unauthorized - Request is missing
required authentication credential. Expected OAuth 2 access token, login
cookie or other valid authentication credential." (see
fastlane/fastlane#21507) error when uploading
Android apps to Google Play Console.
  • Loading branch information
nilsreichardt committed Sep 20, 2023
1 parent 195e807 commit d9ba521
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
fvm config --cache-path '${{ runner.tool_cache }}/flutter'
- name: Install Fastlane
run: sudo gem install fastlane -v 2.214.0
run: sudo gem install fastlane -v 2.216.0

- name: Install Sharezone Repo CLI
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ jobs:
fvm config --cache-path '${{ runner.tool_cache }}/flutter'
- name: Install Fastlane
run: sudo gem install fastlane -v 2.214.0
run: sudo gem install fastlane -v 2.216.0

- name: Install Sharezone Repo CLI
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ class DeployAndroidCommand extends Command {
environment: {
'TRACK': track,
'ROLLOUT': rollout,
// Sets the number of retries for uploading the app bundle to Google
// Play. This is needed because sometimes the upload fails for unknown
// reasons.
//
// See: https://github.com/fastlane/fastlane/issues/21507#issuecomment-1723116829
'SUPPLY_UPLOAD_MAX_RETRIES': '5',
},
);
}
Expand Down

0 comments on commit d9ba521

Please sign in to comment.