auto increase build_number for testflight
This commit is contained in:
parent
aea1be6a38
commit
b11e6fe6ed
1 changed files with 16 additions and 9 deletions
|
|
@ -47,19 +47,26 @@ platform :ios do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Description of what the lane does"
|
desc "Description of what the lane does"
|
||||||
lane :deployToTestFlight do
|
lane :deployToTestFlight do |options|
|
||||||
|
skip_build_number_increase = options[:skip_build_number_increase] # optional, if not set, it gets the last from TestFlight then adds + 1
|
||||||
|
app_store_connect_api_key(
|
||||||
|
key_id: APP_STORE_API_KEY_ID,
|
||||||
|
issuer_id: APP_STORE_API_KEY_ISSUER_ID,
|
||||||
|
key_filepath: APP_STORE_API_KEY_FILE,
|
||||||
|
is_key_content_base64: false,
|
||||||
|
in_house: false # optional but may be required if using match/sigh
|
||||||
|
)
|
||||||
|
|
||||||
|
if skip_build_number_increase.nil?
|
||||||
|
increment_build_number({
|
||||||
|
build_number: latest_testflight_build_number(app_identifier: APP_IDENTIFIER) + 1
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
setupCodeSigning()
|
setupCodeSigning()
|
||||||
ipa_name = "Release.ipa"
|
ipa_name = "Release.ipa"
|
||||||
buildReleaseIPA(ipa_name: ipa_name, method: "app-store")
|
buildReleaseIPA(ipa_name: ipa_name, method: "app-store")
|
||||||
|
|
||||||
app_store_connect_api_key(
|
|
||||||
key_id: APP_STORE_API_KEY_ID,
|
|
||||||
issuer_id: APP_STORE_API_KEY_ISSUER_ID,
|
|
||||||
key_filepath: APP_STORE_API_KEY_FILE,
|
|
||||||
is_key_content_base64: false,
|
|
||||||
in_house: false # optional but may be required if using match/sigh
|
|
||||||
)
|
|
||||||
|
|
||||||
upload_to_testflight(
|
upload_to_testflight(
|
||||||
skip_submission: true,
|
skip_submission: true,
|
||||||
ipa: "./builds/#{ipa_name}",
|
ipa: "./builds/#{ipa_name}",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue