chore: mobile workflow
This commit is contained in:
@@ -46,15 +46,25 @@ platform :ios do
|
|||||||
|
|
||||||
is_prod = scheme == 'StandardNotes'
|
is_prod = scheme == 'StandardNotes'
|
||||||
|
|
||||||
upload_to_testflight(
|
begin
|
||||||
apple_id: ENV['APPLE_APP_ID'],
|
upload_to_testflight(
|
||||||
distribute_external: is_prod,
|
apple_id: ENV['APPLE_APP_ID'],
|
||||||
groups: ['Public'],
|
distribute_external: is_prod,
|
||||||
notify_external_testers: is_prod,
|
groups: ['Public'],
|
||||||
submit_beta_review: is_prod,
|
notify_external_testers: is_prod,
|
||||||
reject_build_waiting_for_review: is_prod,
|
submit_beta_review: is_prod,
|
||||||
changelog: 'Fixes and improvements.'
|
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
|
if is_prod
|
||||||
upload_to_app_store(
|
upload_to_app_store(
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user