* CI fixes

* Fix fastlane script
This commit is contained in:
Elias Nahum
2023-01-06 21:41:03 +02:00
committed by GitHub
parent 8097ee300d
commit c8d9758f18
2 changed files with 13 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ commands:
steps:
- add_ssh_keys:
fingerprints:
- "59:4d:99:5e:1c:6d:30:36:6d:60:76:88:ff:a7:ab:63"
- "03:1c:a7:07:35:bc:57:e4:1d:6c:e1:2c:4b:be:09:6d"
- run:
name: Clone the mobile private repo
command: git clone git@github.com:mattermost/mattermost-mobile-private.git ~/mattermost-mobile-private

View File

@@ -323,7 +323,7 @@ platform :ios do
desc 'Get iOS match profiles'
lane :certs do
if !ENV['MATCH_PASSWORD'].nil? && !ENV['MATCH_PASSWORD'].empty?
if !ENV['IOS_API_KEY_ID'].nil? && !ENV['IOS_API_KEY_ID'].empty?
api_key = get_apple_api_key()
match(
api_key: api_key,
@@ -499,8 +499,17 @@ platform :ios do
)
# Sync the provisioning profiles using match
if ENV['SYNC_PROVISIONING_PROFILES'] == 'true' && !ENV['MATCH_PASSWORD'].nil? && !ENV['MATCH_PASSWORD'].empty?
match(type: ENV['MATCH_TYPE'] || 'adhoc')
if ENV['SYNC_PROVISIONING_PROFILES'] == 'true'
if !ENV['MATCH_PASSWORD'].nil? && !ENV['MATCH_PASSWORD'].empty?
match(type: ENV['MATCH_TYPE'] || 'adhoc')
end
if !ENV['IOS_API_KEY_ID'].nil? && !ENV['IOS_API_KEY_ID'].empty?
api_key = get_apple_api_key()
match(
api_key: api_key,
type: ENV['MATCH_TYPE'] || 'adhoc'
)
end
end
end