Apple-Actions / import-codesign-certs

GitHub Action for Importing Code-signing Certificates into a Keychain
MIT License
180 stars 77 forks source link

p12 certificate as a secret? #13

Open L4ZZA opened 3 years ago

L4ZZA commented 3 years ago

Hi there,

I've been trying to build an iOS app for days using github actions nobody seems to share to do that from start to finish.

Once I get the p12 binary file from a mac keychain acces, how can I "add it as a secret" so that your actions recognises it if it is a binary file and the secrets input only allows text?

solid-maxim commented 3 years ago

@L4ZZA You can encode it to a base64 string: base64 <certificate_name>.p12 | pbcopy. And paste copied text into secrets.

abemedia commented 3 years ago

Since I was using some custom bash before migrating to this I had already done that part but I do think for people first arriving here it would be useful to have a basic guide in the README.