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,11 +47,8 @@ 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|
|
||||||
setupCodeSigning()
|
skip_build_number_increase = options[:skip_build_number_increase] # optional, if not set, it gets the last from TestFlight then adds + 1
|
||||||
ipa_name = "Release.ipa"
|
|
||||||
buildReleaseIPA(ipa_name: ipa_name, method: "app-store")
|
|
||||||
|
|
||||||
app_store_connect_api_key(
|
app_store_connect_api_key(
|
||||||
key_id: APP_STORE_API_KEY_ID,
|
key_id: APP_STORE_API_KEY_ID,
|
||||||
issuer_id: APP_STORE_API_KEY_ISSUER_ID,
|
issuer_id: APP_STORE_API_KEY_ISSUER_ID,
|
||||||
|
|
@ -60,6 +57,16 @@ platform :ios do
|
||||||
in_house: false # optional but may be required if using match/sigh
|
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()
|
||||||
|
ipa_name = "Release.ipa"
|
||||||
|
buildReleaseIPA(ipa_name: ipa_name, method: "app-store")
|
||||||
|
|
||||||
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