Use App Store Connecte API key for authentication
This commit is contained in:
parent
b420ffb6a5
commit
b890985daf
1 changed files with 9 additions and 0 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
default_platform :ios
|
default_platform :ios
|
||||||
|
api_key = app_store_connect_api_key(
|
||||||
|
key_id: ENV["APP_STORE_CONNECT_API_KEY_KEY_ID"],
|
||||||
|
issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"],
|
||||||
|
key_content: ENV["APP_STORE_CONNECT_API_KEY_KEY_CONTENT"],
|
||||||
|
)
|
||||||
|
|
||||||
lane :prepare do
|
lane :prepare do
|
||||||
carthage(cache_builds: true, platform: "iOS")
|
carthage(cache_builds: true, platform: "iOS")
|
||||||
|
|
@ -86,6 +91,7 @@ platform :ios do
|
||||||
build_number: latest_testflight_build_number(
|
build_number: latest_testflight_build_number(
|
||||||
version: get_version_number(target: "pass"),
|
version: get_version_number(target: "pass"),
|
||||||
app_identifier: app_identifier,
|
app_identifier: app_identifier,
|
||||||
|
api_key: api_key,
|
||||||
initial_build_number: 0
|
initial_build_number: 0
|
||||||
) + 1,
|
) + 1,
|
||||||
xcodeproj: "pass.xcodeproj"
|
xcodeproj: "pass.xcodeproj"
|
||||||
|
|
@ -108,6 +114,7 @@ platform :ios do
|
||||||
)
|
)
|
||||||
upload_to_testflight(
|
upload_to_testflight(
|
||||||
app_identifier: app_identifier,
|
app_identifier: app_identifier,
|
||||||
|
api_key: api_key,
|
||||||
skip_waiting_for_build_processing: true
|
skip_waiting_for_build_processing: true
|
||||||
)
|
)
|
||||||
increment_build_number(
|
increment_build_number(
|
||||||
|
|
@ -138,6 +145,7 @@ platform :ios do
|
||||||
build_number: latest_testflight_build_number(
|
build_number: latest_testflight_build_number(
|
||||||
version: get_version_number(target: "pass"),
|
version: get_version_number(target: "pass"),
|
||||||
app_identifier: app_identifier,
|
app_identifier: app_identifier,
|
||||||
|
api_key: api_key,
|
||||||
initial_build_number: 0
|
initial_build_number: 0
|
||||||
) + 1,
|
) + 1,
|
||||||
xcodeproj: "pass.xcodeproj"
|
xcodeproj: "pass.xcodeproj"
|
||||||
|
|
@ -159,6 +167,7 @@ platform :ios do
|
||||||
)
|
)
|
||||||
upload_to_testflight(
|
upload_to_testflight(
|
||||||
app_identifier: app_identifier,
|
app_identifier: app_identifier,
|
||||||
|
api_key: api_key,
|
||||||
skip_waiting_for_build_processing: true
|
skip_waiting_for_build_processing: true
|
||||||
)
|
)
|
||||||
increment_build_number(
|
increment_build_number(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue