/apple-build-certificate-action

Installing an Apple certificate on macOS runners for Xcode development

MIT LicenseMIT

Apple Build Certificate Action

Installing an Apple certificate on macOS runners for Xcode development.

More information can be found in GitHub official documentation.

Encode certificate as action secret

base64 -i BUILD_CERTIFICATE.p12

Installing provisioning profiles

It is recommended to use apple-provisioning-profile-action at the same time to install the needed provisioning profiles.

Samaple usage

jobs:
  test:
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v3
      - uses: nickwph/apple-build-certificate-action@v1
        with:
          certificate-base64: ${{ secrets.CERTIFICATE_BASE64 }}
          certificate-password: ${{ secrets.CERTIFICATE_PASSWORD }}
          certificate-file: ${{ secrets.CERTIFICATE_PATH }}  # Optional: Ignored if certificate-base64 is defined
      - uses: nickwph/apple-provisioning-profile-action@v1   # Optional: Recommend to use with apple-provisioning-profile-action
        with:
          profile-base64: ${{ secrets.PROFILE_BASE64 }}
          profile-file: ${{ secrets.CERTIFICATE_PATH }}      # Optional: Ignored if profile-base64 is defined