Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def import_certificates
return unless Helper.is_ci? # As in my local machine I don't need to import the certificates, only run if it's in the CI
create_keychain(
name: ENV["KEYCHAIN_NAME"],
default_keychain: true,
unlock: true,
timeout: 3600,
lock_when_sleeps: true,
password: ENV["KEYCHAIN_PASSWORD"]
)
import_certificate(
certificate_path: "fastlane/certificates/distribution.p12",
certificate_password: ENV['CERT_PASSWORD'],
keychain_name: ENV["KEYCHAIN_NAME"]
)
import_certificate(
certificate_path: "fastlane/certificates/ios_distribution.cer",
keychain_name: ENV["KEYCHAIN_NAME"]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.