Specify and fetch the NSE provisioning profile when building Alphas (#334)

Specify and fetch the NSE provisioning profile when building Alphas
This commit is contained in:
Stefan Ceriu
2022-11-23 14:02:54 +02:00
committed by GitHub
parent 7bc02c5ccb
commit e22c038a0f
2 changed files with 37 additions and 17 deletions
-1
View File
@@ -2,7 +2,6 @@ name: Alpha release
on: on:
pull_request: pull_request:
types: [ labeled, synchronized, opened, reopened ]
workflow_dispatch: workflow_dispatch:
+37 -16
View File
@@ -6,28 +6,48 @@ before_all do
end end
lane :alpha do lane :alpha do
config_xcodegen_alpha()
provisioning_profile_name = "ElementX PR Ad Hoc"
bundle_identifier = "io.element.elementx.pr"
code_signing_identity = "Apple Distribution: Vector Creations Limited (7J4U792NQT)"
update_code_signing_settings(
use_automatic_signing: false,
bundle_identifier: bundle_identifier,
profile_name: provisioning_profile_name,
code_sign_identity: code_signing_identity
)
app_store_connect_api_key( app_store_connect_api_key(
key_id: ENV["APPSTORECONNECT_KEY_ID"], key_id: ENV["APPSTORECONNECT_KEY_ID"],
issuer_id: ENV["APPSTORECONNECT_KEY_ISSUER_ID"], issuer_id: ENV["APPSTORECONNECT_KEY_ISSUER_ID"],
key_content: ENV["APPSTORECONNECT_KEY_CONTENT"] key_content: ENV["APPSTORECONNECT_KEY_CONTENT"]
) )
config_xcodegen_alpha()
code_signing_identity = "Apple Distribution: Vector Creations Limited (7J4U792NQT)"
app_provisioning_profile_name = "ElementX PR Ad Hoc"
app_bundle_identifier = "io.element.elementx.pr"
nse_provisioning_profile_name = "ElementX NSE PR Ad Hoc"
nse_bundle_identifier = "io.element.elementx.pr.nse"
update_code_signing_settings(
targets: ["ElementX"],
use_automatic_signing: false,
bundle_identifier: app_bundle_identifier,
profile_name: app_provisioning_profile_name,
code_sign_identity: code_signing_identity
)
get_provisioning_profile( get_provisioning_profile(
app_identifier: bundle_identifier, app_identifier: app_bundle_identifier,
provisioning_name: provisioning_profile_name, provisioning_name: app_provisioning_profile_name,
ignore_profiles_with_different_name: true,
adhoc: true
)
update_code_signing_settings(
targets: ["NSE"],
use_automatic_signing: false,
bundle_identifier: nse_bundle_identifier,
profile_name: nse_provisioning_profile_name,
code_sign_identity: code_signing_identity
)
get_provisioning_profile(
app_identifier: nse_bundle_identifier,
provisioning_name: nse_provisioning_profile_name,
ignore_profiles_with_different_name: true, ignore_profiles_with_different_name: true,
adhoc: true adhoc: true
) )
@@ -39,7 +59,8 @@ lane :alpha do
output_directory: "build", output_directory: "build",
export_options: { export_options: {
provisioningProfiles: { provisioningProfiles: {
bundle_identifier => provisioning_profile_name, app_bundle_identifier => app_provisioning_profile_name,
nse_bundle_identifier => nse_provisioning_profile_name
} }
} }
) )