Skip to content

GitHub action to create a keychain and import macOS certificates for publishing macOS apps.

License

Notifications You must be signed in to change notification settings

mskelton/macos-certs

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

macOS Certs

GitHub action to create a keychain and import macOS certificates for publishing macOS apps.

Usage

- name: Add macOS certs
  uses: mskelton/macos-certs@v1
  env:
    CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
    CERT_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}

Exporting certificates

To export your signing certificates, follow the steps below.

  1. Login to Apple Developer and go to Certificates, Identifiers & Profiles
  2. Create the appropriate signing certificates
  3. Download and add the certificates to your keychain
  4. Select the certificates and their associated private keys in keychain and export as a p12 file.
  5. Run the following command to convert your p12 file into a base64 string.
    base64 -i <p12_file> | pbcopy
  6. Add the copied string to a CERT_P12 secret in your repo.
  7. Add the password you used when exporting to the CERT_PASSWORD secret in your repo.

When exporting your certificates and private keys from keychain, it should look something like this.

Certificates

About

GitHub action to create a keychain and import macOS certificates for publishing macOS apps.

Topics

Resources

License

Stars

Watchers

Forks

Languages