https://github.com/mskelton/macos-certs
GitHub action to create a keychain and import macOS certificates for publishing macOS apps.
https://github.com/mskelton/macos-certs
certificates electron github-actions keychain macos
Last synced: about 2 months ago
JSON representation
GitHub action to create a keychain and import macOS certificates for publishing macOS apps.
- Host: GitHub
- URL: https://github.com/mskelton/macos-certs
- Owner: mskelton
- License: isc
- Created: 2023-05-25T23:26:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-26T03:07:57.000Z (about 3 years ago)
- Last Synced: 2025-08-25T07:26:14.204Z (10 months ago)
- Topics: certificates, electron, github-actions, keychain, macos
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# macOS Certs
GitHub action to create a keychain and import macOS certificates for publishing
macOS apps.
## Usage
```yml
- 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](https://developer.apple.com/account/resources/certificates/list)
1. Create the appropriate signing certificates
1. Download and add the certificates to your keychain
1. Select the certificates and their associated private keys in keychain and
export as a `p12` file.
1. Run the following command to convert your `p12` file into a base64 string.
```bash
base64 -i | pbcopy
```
1. Add the copied string to a `CERT_P12` secret in your repo.
1. 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._
