Skip to content

Commit

Permalink
Add iOS rollout completion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Nov 11, 2024
1 parent 53416c8 commit f9ed151
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,12 @@ jobs:

- name: Submit production build for App Store review and a slow rollout
if: ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
run: bundle exec fastlane ios submit_hybrid_for_rollout
run: |
# Complete the previous version rollout
complete_hybrid_rollout
# Submit the new version for review and phased rollout when it's approved
bundle exec fastlane ios submit_hybrid_for_rollout
env:
VERSION: ${{ steps.getIOSVersion.outputs.IOS_VERSION }}

Expand Down
11 changes: 11 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#

require 'ostruct'
require 'spaceship'

skip_docs
opt_out_usage
Expand Down Expand Up @@ -545,6 +546,16 @@ platform :ios do
)
end

desc "Submit HybridApp to 100% rollout on App Store"
lane :complete_hybrid_rollout do
api_token = Spaceship::ConnectAPI::Token.from_json_file("./ios/ios-fastlane-json-key.json")
Spaceship::ConnectAPI.token = api_token

app = Spaceship::ConnectAPI::App.find("com.expensify.expensifylite")
version = app.get_live_app_store_version(platform: Spaceship::ConnectAPI::Platform::IOS)
version.fetch_app_store_version_phased_release.complete
end

desc "Submit HybridApp for production App Store slow rollout"
lane :submit_hybrid_for_rollout do
deliver(
Expand Down

0 comments on commit f9ed151

Please sign in to comment.