chore: mobile workflow

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

View File

@@ -46,6 +46,7 @@ platform :ios do
is_prod = scheme == 'StandardNotes' is_prod = scheme == 'StandardNotes'
begin
upload_to_testflight( upload_to_testflight(
apple_id: ENV['APPLE_APP_ID'], apple_id: ENV['APPLE_APP_ID'],
distribute_external: is_prod, distribute_external: is_prod,
@@ -56,6 +57,15 @@ platform :ios do
changelog: 'Fixes and improvements.' 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 if is_prod
upload_to_app_store( upload_to_app_store(
build_number: build_number, build_number: build_number,
@@ -66,7 +76,7 @@ platform :ios do
skip_screenshots: true, skip_screenshots: true,
skip_binary_upload: true, skip_binary_upload: true,
release_notes: { release_notes: {
'default': "Fixes and improvements.", 'default': 'Fixes and improvements.'
} }
) )
end end
@@ -123,7 +133,7 @@ platform :android do
end end
def deploy_android(variant, versionCode, track = 'beta') def deploy_android(variant, versionCode, track = 'beta')
sh("yarn run android:bundle") sh('yarn run android:bundle')
build_android(variant, versionCode) build_android(variant, versionCode)
upload_to_play_store( upload_to_play_store(
track: track, track: track,