@@ -467,47 +467,6 @@ platform :ios do
467467 download_jetpack_localized_app_store_metadata
468468 end
469469
470- #####################################################################################
471- # build_and_upload_beta_release
472- # -----------------------------------------------------------------------------------
473- # This lane builds a beta release of the app and optionally uploads
474- # it for both internal and external distribution
475- # -----------------------------------------------------------------------------------
476- # Usage:
477- # bundle exec fastlane build_and_upload_beta_release [skip_confirm:<skip confirm>]
478- # [create_gh_release:<create release on GH>]
479- #
480- # Example:
481- # bundle exec fastlane build_and_upload_beta_release
482- # bundle exec fastlane build_and_upload_beta_release skip_confirm:true
483- # bundle exec fastlane build_and_upload_beta_release create_gh_release:true
484- #####################################################################################
485- desc 'Builds and uploads a beta release for distribution'
486- lane :build_and_upload_beta_release do |options |
487- build_and_upload_app_center ( options )
488- build_and_upload_app_store_connect ( options )
489- end
490-
491- #####################################################################################
492- # build_and_upload_stable_release
493- # -----------------------------------------------------------------------------------
494- # This lane builds a stable release of the app and optionally uploads
495- # it for distribution
496- # -----------------------------------------------------------------------------------
497- # Usage:
498- # bundle exec fastlane build_and_upload_stable_release [skip_confirm:<skip confirm>]
499- # [create_gh_release:<create release on GH>]
500- #
501- # Example:
502- # bundle exec fastlane build_and_upload_stable_release
503- # bundle exec fastlane build_and_upload_stable_release skip_confirm:true
504- # bundle exec fastlane build_and_upload_stable_release create_gh_release:true
505- #####################################################################################
506- desc 'Builds and uploads a stable release for distribution'
507- lane :build_and_upload_stable_release do |options |
508- build_and_upload_app_store_connect ( options )
509- end
510-
511470 #####################################################################################
512471 # build_and_upload_app_store_connect
513472 # -----------------------------------------------------------------------------------
@@ -817,12 +776,7 @@ platform :ios do
817776 #
818777 #####################################################################################
819778 lane :trigger_beta_build do |options |
820- buildkite_trigger_build (
821- buildkite_organization : 'automattic' ,
822- buildkite_pipeline : 'wordpress-ios' ,
823- branch : options [ :branch_to_build ] ,
824- pipeline_file : 'release-builds.yml'
825- )
779+ trigger_buildkite_release_build ( branch : options [ :branch_to_build ] , beta : true )
826780 end
827781
828782 #####################################################################################
@@ -835,12 +789,7 @@ platform :ios do
835789 #
836790 #####################################################################################
837791 lane :trigger_release_build do |options |
838- buildkite_trigger_build (
839- buildkite_organization : 'automattic' ,
840- buildkite_pipeline : 'wordpress-ios' ,
841- branch : options [ :branch_to_build ] ,
842- pipeline_file : 'release-builds.yml'
843- )
792+ trigger_buildkite_release_build ( branch : options [ :branch_to_build ] , beta : false )
844793 end
845794
846795 ########################################################################
@@ -1019,6 +968,16 @@ def generate_installable_build_number
1019968 end
1020969end
1021970
971+ def trigger_buildkite_release_build ( branch :, beta :)
972+ buildkite_trigger_build (
973+ buildkite_organization : 'automattic' ,
974+ buildkite_pipeline : 'wordpress-ios' ,
975+ branch : branch ,
976+ environment : { BETA_RELEASE : beta } ,
977+ pipeline_file : 'release-builds.yml'
978+ )
979+ end
980+
1022981# Application-agnostic settings for the `upload_to_app_store` action, also
1023982# known as `deliver`.
1024983UPLOAD_TO_APP_STORE_COMMON_PARAMS = {
0 commit comments