feat: add logs and parameters to match
This commit is contained in:
parent
502c7b06e4
commit
24a09b44c4
@ -1,18 +0,0 @@
|
|||||||
{
|
|
||||||
"developer_app_id":"1624036332",
|
|
||||||
"developer_app_identifier":"com.jaggerlewis.jl3",
|
|
||||||
"app_identifier_extensions":[
|
|
||||||
"com.jaggerlewis.jl3",
|
|
||||||
"com.jaggerlewis.jl3.OneSignalNotificationServiceExtension"
|
|
||||||
|
|
||||||
],
|
|
||||||
"apple_issuer_id":"69a6de90-9fe1-47e3-e053-5b8c7c11a4d1",
|
|
||||||
"apple_key_id":"VBRDBQM7SJ",
|
|
||||||
"apple_key_content":"-----BEGIN PRIVATE KEY-----\nMIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgxLuVvuI7DafrGHTz\nATTtdB1TgIFkb12qFVyNSj4kuE+gCgYIKoZIzj0DAQehRANCAAQl7PyxfJR2QoKC\nmpqvjG4mQxMIzehm9TsLAjwLrPya4LWRyxrEEvPG/N5L06udHtv26gLDMR5gY6uO\nY1pVJX28\n-----END PRIVATE KEY-----",
|
|
||||||
"provisioning_profiles":{
|
|
||||||
"1624036332": "match AppStore com.jaggerlewis.jl3",
|
|
||||||
"com.jaggerlewis.jl3.OneSignalNotificationServiceExtension": "match AppStore com.jaggerlewis.jl3.OneSignalNotificationServiceExtension"
|
|
||||||
},
|
|
||||||
"temp_keychain_user":"root",
|
|
||||||
"temp_keychain_password":"toto1234"
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -15,12 +15,15 @@ module Fastlane
|
|||||||
|
|
||||||
# Decrypt the keys archive and Extract the keys archive
|
# Decrypt the keys archive and Extract the keys archive
|
||||||
Helper::IosCdHelper.decrypt_ios_keys('.')
|
Helper::IosCdHelper.decrypt_ios_keys('.')
|
||||||
|
UI.message("👉🏼 Credentials decrypted.")
|
||||||
|
|
||||||
# Retrieve credentials
|
# Retrieve credentials
|
||||||
creds = Helper::IosCdHelper.parseIosCredentials('.')
|
creds = Helper::IosCdHelper.parseIosCredentials('.')
|
||||||
|
UI.message("👉🏼 Credentials parsed.")
|
||||||
|
|
||||||
# Ensure temporary keychain exists
|
# Ensure temporary keychain exists
|
||||||
Helper::IosCdHelper.ensure_temp_keychain(creds['temp_keychain_user'], creds['temp_keychain_password'])
|
Helper::IosCdHelper.ensure_temp_keychain(creds['temp_keychain_user'], creds['temp_keychain_password'])
|
||||||
|
UI.message("👉🏼 New keychain created")
|
||||||
|
|
||||||
# Obtain App Store Connect API key
|
# Obtain App Store Connect API key
|
||||||
api_key = Actions::AppStoreConnectApiKeyAction.run(
|
api_key = Actions::AppStoreConnectApiKeyAction.run(
|
||||||
@ -30,6 +33,7 @@ module Fastlane
|
|||||||
duration: 1200,
|
duration: 1200,
|
||||||
in_house: false
|
in_house: false
|
||||||
)
|
)
|
||||||
|
UI.message("👉🏼 API Key formated")
|
||||||
|
|
||||||
last_testflight_build_number =
|
last_testflight_build_number =
|
||||||
Actions::LatestTestflightBuildNumberAction.run(
|
Actions::LatestTestflightBuildNumberAction.run(
|
||||||
@ -46,6 +50,7 @@ module Fastlane
|
|||||||
build_number: last_testflight_build_number + 1,
|
build_number: last_testflight_build_number + 1,
|
||||||
xcodeproj: "Runner.xcodeproj"
|
xcodeproj: "Runner.xcodeproj"
|
||||||
)
|
)
|
||||||
|
UI.message("👉🏼 Build number incremented")
|
||||||
|
|
||||||
# Install Cocoapods
|
# Install Cocoapods
|
||||||
Actions::CocoapodsAction.run(
|
Actions::CocoapodsAction.run(
|
||||||
@ -54,6 +59,7 @@ module Fastlane
|
|||||||
integrate: true,
|
integrate: true,
|
||||||
podfile: "./Podfile"
|
podfile: "./Podfile"
|
||||||
)
|
)
|
||||||
|
UI.message("👉🏼 Pod got")
|
||||||
|
|
||||||
# Set up code signing using match
|
# Set up code signing using match
|
||||||
# Configures and runs `match` which manages code signing certificates and provisioning profiles for the project.
|
# Configures and runs `match` which manages code signing certificates and provisioning profiles for the project.
|
||||||
@ -61,13 +67,20 @@ module Fastlane
|
|||||||
# It uses the App Store Connect API key to access the App Store and increment the build number.
|
# It uses the App Store Connect API key to access the App Store and increment the build number.
|
||||||
# It then runs `gym` to build and sign the app using the selected provisioning profile, and finally, uses `pilot` to upload the app to TestFlight for beta testing.
|
# It then runs `gym` to build and sign the app using the selected provisioning profile, and finally, uses `pilot` to upload the app to TestFlight for beta testing.
|
||||||
Actions::MatchAction.run(
|
Actions::MatchAction.run(
|
||||||
|
api_key: api_key
|
||||||
type: 'appstore',
|
type: 'appstore',
|
||||||
app_identifier: creds['app_identifier_extensions'],
|
app_identifier: creds['app_identifier_extensions'],
|
||||||
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
|
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
|
||||||
keychain_name: creds['temp_keychain_user'],
|
keychain_name: creds['temp_keychain_user'],
|
||||||
keychain_password: creds['temp_keychain_password'],
|
keychain_password: creds['temp_keychain_password'],
|
||||||
api_key: api_key
|
git_url: creds['git_url'],
|
||||||
|
username: "leonmalo@sfr.fr",
|
||||||
|
team_id: "118579280",
|
||||||
|
team_name: "Jagger & Lewis",
|
||||||
|
team_name: "https://github.com/JaggerLewis/jl2022_cert.git",
|
||||||
|
storage_mode: "git",
|
||||||
)
|
)
|
||||||
|
UI.message("👉🏼 App signed")
|
||||||
|
|
||||||
# Build and export app using Gym
|
# Build and export app using Gym
|
||||||
# Builds and packages an iOS app or framework for distribution to the App Store, TestFlight, or Enterprise distribution.
|
# Builds and packages an iOS app or framework for distribution to the App Store, TestFlight, or Enterprise distribution.
|
||||||
@ -80,6 +93,7 @@ module Fastlane
|
|||||||
provisioningProfiles: creds['provisioning_profiles']
|
provisioningProfiles: creds['provisioning_profiles']
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
UI.message("👉🏼 App built")
|
||||||
|
|
||||||
# Upload build to App Store Connect using Pilot
|
# Upload build to App Store Connect using Pilot
|
||||||
Actions::PilotAction.run(
|
Actions::PilotAction.run(
|
||||||
@ -91,6 +105,7 @@ module Fastlane
|
|||||||
notify_external_testers: false,
|
notify_external_testers: false,
|
||||||
ipa: "./Runner.ipa"
|
ipa: "./Runner.ipa"
|
||||||
)
|
)
|
||||||
|
UI.message("👉🏼 App uploaded")
|
||||||
|
|
||||||
Actions::DeleteTempKeychainAction.run
|
Actions::DeleteTempKeychainAction.run
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user