chore: mobile workflow

This commit is contained in:
Mo
2022-07-07 14:04:49 -05:00
parent 2448672a61
commit 1990a9d2e6

View File

@@ -46,15 +46,25 @@ platform :ios do
is_prod = scheme == 'StandardNotes'
upload_to_testflight(
apple_id: ENV['APPLE_APP_ID'],
distribute_external: is_prod,
groups: ['Public'],
notify_external_testers: is_prod,
submit_beta_review: is_prod,
reject_build_waiting_for_review: is_prod,
changelog: 'Fixes and improvements.'
)
begin
upload_to_testflight(
apple_id: ENV['APPLE_APP_ID'],
distribute_external: is_prod,
groups: ['Public'],
notify_external_testers: is_prod,
submit_beta_review: is_prod,
reject_build_waiting_for_review: is_prod,
changelog: 'Fixes and improvements.'
)
# https://github.com/fastlane/fastlane/issues/18408
rescue Exception => e
if e.message.include? 'Another build is in review'
UI.important('Another build is already in external beta review. Skipping external beta review submission')
else
raise
end
end
if is_prod
upload_to_app_store(
@@ -66,7 +76,7 @@ platform :ios do
skip_screenshots: true,
skip_binary_upload: true,
release_notes: {
'default': "Fixes and improvements.",
'default': 'Fixes and improvements.'
}
)
end
@@ -123,7 +133,7 @@ platform :android do
end
def deploy_android(variant, versionCode, track = 'beta')
sh("yarn run android:bundle")
sh('yarn run android:bundle')
build_android(variant, versionCode)
upload_to_play_store(
track: track,