Skip to content

Commit

Permalink
chore: mobile workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed Jul 7, 2022
1 parent 2448672 commit 1990a9d
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions packages/mobile/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1990a9d

Please sign in to comment.