@@ -67,7 +67,7 @@ ENV["APP_STORE_STRINGS_FILE_NAME"]="AppStoreStrings.pot"
6767 setfrozentag ( repository :GHHELPER_REPO , milestone : new_version )
6868
6969 ios_localize_project ( )
70- ios_tag_build ( )
70+
7171 get_prs_list ( repository :GHHELPER_REPO , start_tag :"#{ old_version } " , report_path :"#{ File . expand_path ( '~' ) } /wcios_prs_list_#{ old_version } _#{ new_version } .txt" )
7272 end
7373
@@ -198,19 +198,22 @@ ENV["APP_STORE_STRINGS_FILE_NAME"]="AppStoreStrings.pot"
198198 # This lane builds the app and upload it for distribution
199199 # -----------------------------------------------------------------------------------
200200 # Usage:
201- # bundle exec fastlane build_and_upload_release [skip_confirm:<skip confirm>]
201+ # bundle exec fastlane build_and_upload_release [skip_confirm:<skip confirm>] [create_gh_release:<create release on GH>]
202202 #
203203 # Example:
204204 # bundle exec fastlane build_and_upload_release
205205 # bundle exec fastlane build_and_upload_release skip_confirm:true
206206 #####################################################################################
207207 desc "Builds and updates for distribution"
208208 lane :build_and_upload_release do | options |
209+ final_tag = ( is_ci ( ) == true ) ? ios_validate_ci_build ( ) : false
210+ create_release = ( final_tag && is_ci ( ) ) || options [ :create_gh_release ]
211+
209212 ios_build_prechecks ( skip_confirm : options [ :skip_confirm ] ,
210213 internal : false ,
211214 external : true )
212215 ios_build_preflight ( )
213- build_and_upload_itc ( skip_prechecks : true , skip_confirm : options [ :skip_confirm ] )
216+ build_and_upload_itc ( skip_prechecks : true , skip_confirm : options [ :skip_confirm ] , create_release : create_release )
214217 end
215218
216219 #####################################################################################
0 commit comments