Skip to content

Commit

Permalink
[#169] Update match keys
Browse files Browse the repository at this point in the history
  • Loading branch information
doannimble committed Aug 9, 2023
1 parent 7cdca83 commit 620634f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ios_deploy_production_to_app_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
# Trigger the workflow on push action
push:
branches:
- develop
- main

jobs:
build_and_upload_to_app_store:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
run: cd ./ios && bundle exec fastlane update_plugins

- name: Match AppStore
run: cd ./ios && bundle exec fastlane sync_appstore_staging_signing
run: cd ./ios && bundle exec fastlane sync_appstore_production_signing
env:
GITHUB_RUN_NUMBER: ${{ secrets.GITHUB_RUN_NUMBER }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios_deploy_production_to_testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
# Trigger the workflow on push action
push:
branches:
- develop
- main
- chore/169-mirrored-workflow-ios

jobs:
Expand Down Expand Up @@ -70,10 +70,10 @@ jobs:
run: cd ./ios && bundle exec fastlane update_plugins

- name: Match AppStore
run: cd ./ios && bundle exec fastlane sync_appstore_staging_signing
run: cd ./ios && bundle exec fastlane sync_appstore_production_signing
env:
GITHUB_RUN_NUMBER: ${{ secrets.GITHUB_RUN_NUMBER }}

- name: Deploy to TestFlight
run: |
cd ./ios && bundle exec fastlane build_and_upload_testflight_app
cd ./ios && bundle exec fastlane build_and_upload_testflight_production_app
26 changes: 26 additions & 0 deletions sample/ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ platform :ios do
match_manager.sync_adhoc_signing(app_identifier: [Constants.BUNDLE_ID_STAGING])
end

desc 'Sync AppStore Production match signing'
lane :sync_appstore_production_signing do
match_manager.sync_app_store_signing(app_identifier: [Constants.BUNDLE_ID_PRODUCTION])
end

desc 'Register new devices'
lane :register_new_device do
device_name = prompt(text: 'Enter the device name: ')
Expand Down Expand Up @@ -76,6 +81,27 @@ platform :ios do
)
end

desc 'Build and upload Production app to Test Flight'
lane :build_and_upload_testflight_production_app do
set_app_version
builder.build_app_store(
Constants.SCHEME_NAME_PRODUCTION,
Constants.PRODUCT_NAME_PRODUCTION,
Constants.BUNDLE_ID_PRODUCTION,
false
)
set_connect_api_key
upload_production_build_to_testflight
end

desc 'Upload Production build to Test Flight'
private_lane :upload_production_build_to_testflight do
distribution_manager.upload_to_testflight(
product_name: Constants.PRODUCT_NAME_PRODUCTION,
bundle_identifier: Constants.BUNDLE_ID_PRODUCTION,
)
end

# AppStore

desc 'Build and upload Staging app to App Store Connect'
Expand Down

0 comments on commit 620634f

Please sign in to comment.