@@ -518,7 +518,7 @@ platform :ios do
518
518
end
519
519
520
520
#####################################################################################
521
- # build_and_upload_release
521
+ # build_and_upload_release [Deprecated - Can be removed once CircleCI is no longer in use]
522
522
# -----------------------------------------------------------------------------------
523
523
# This lane builds the app and uploads it for both internal and external distribution
524
524
# -----------------------------------------------------------------------------------
@@ -534,14 +534,70 @@ platform :ios do
534
534
#####################################################################################
535
535
desc 'Builds and uploads for distribution'
536
536
lane :build_and_upload_release do |options |
537
- ios_build_prechecks ( skip_confirm : options [ :skip_confirm ] ,
538
- internal : options [ :beta_release ] ,
539
- external : true )
537
+ build_and_upload_app_center ( options ) if options [ :beta_release ]
538
+ build_and_upload_app_store_connect ( options )
539
+ end
540
+
541
+ #####################################################################################
542
+ # build_and_upload_app_store_connect
543
+ # -----------------------------------------------------------------------------------
544
+ # This lane builds the app and uploads it for App Store Connect
545
+ # -----------------------------------------------------------------------------------
546
+ # Usage:
547
+ # bundle exec fastlane build_and_upload_app_store_connect [skip_confirm:<skip confirm>]
548
+ # [create_gh_release:<create release on GH>] [beta_release:<is a beta release>]
549
+ #
550
+ # Example:
551
+ # bundle exec fastlane build_and_upload_app_store_connect
552
+ # bundle exec fastlane build_and_upload_app_store_connect skip_confirm:true
553
+ # bundle exec fastlane build_and_upload_app_store_connect create_gh_release:true
554
+ # bundle exec fastlane build_and_upload_app_store_connect beta_release:true
555
+ #####################################################################################
556
+ desc 'Builds and uploads for distribution to App Store Connect'
557
+ lane :build_and_upload_app_store_connect do |options |
558
+ ios_build_prechecks (
559
+ skip_confirm : options [ :skip_confirm ] ,
560
+ internal : options [ :beta_release ] ,
561
+ external : true
562
+ )
563
+
540
564
ios_build_preflight
541
565
542
- build_and_upload_internal ( skip_prechecks : true , skip_confirm : options [ :skip_confirm ] ) if options [ :beta_release ]
543
- build_and_upload_itc ( skip_prechecks : true , skip_confirm : options [ :skip_confirm ] ,
544
- beta_release : options [ :beta_release ] , create_release : options [ :create_gh_release ] )
566
+ build_and_upload_itc (
567
+ skip_prechecks : true ,
568
+ skip_confirm : options [ :skip_confirm ] ,
569
+ beta_release : options [ :beta_release ] ,
570
+ create_release : options [ :create_gh_release ]
571
+ )
572
+
573
+ end
574
+
575
+ #####################################################################################
576
+ # build_and_upload_app_center
577
+ # -----------------------------------------------------------------------------------
578
+ # This lane builds the app and uploads it for App Center
579
+ # -----------------------------------------------------------------------------------
580
+ # Usage:
581
+ # bundle exec fastlane build_and_upload_app_center [skip_confirm:<skip confirm>]
582
+ #
583
+ # Example:
584
+ # bundle exec fastlane build_and_upload_app_center
585
+ # bundle exec fastlane build_and_upload_app_center skip_confirm:true
586
+ #####################################################################################
587
+ desc 'Builds and uploads for distribution to App Center'
588
+ lane :build_and_upload_app_center do |options |
589
+ ios_build_prechecks (
590
+ skip_confirm : options [ :skip_confirm ] ,
591
+ internal : true ,
592
+ external : true
593
+ )
594
+
595
+ ios_build_preflight
596
+
597
+ build_and_upload_internal (
598
+ skip_prechecks : true ,
599
+ skip_confirm : options [ :skip_confirm ]
600
+ )
545
601
end
546
602
547
603
#####################################################################################
0 commit comments