Skip to content

Instantly share code, notes, and snippets.

@natanrolnik
Last active October 21, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natanrolnik/6541bb8970ef467405e0 to your computer and use it in GitHub Desktop.
Save natanrolnik/6541bb8970ef467405e0 to your computer and use it in GitHub Desktop.
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