3.0.0 • Published 2 years ago

@akiojin/setup-xocde-environment-github-action v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

setup-xcode-environment-github-action

This action installs the provisioning profile and certificate required to build Xcode. Provisioning profiles and certificates are installed automatically using fastlane, so there is no need to set a Base64-ized file for the secret. This action does not automatically remove installed provisioning profiles and certificates. If you do not want to keep the provisioning profile and certificates, use a temporary keychain instead of the default keychain. Certificates are stored in the keychain configured by default, but a temporary keychain can also be used. See Usage temporary keychain for instructions on using the temporary keychain.

Requirement

fastlane

You will need to install fastlane. Only Git repositories are supported for storing provisioning profiles and certificates.

Installation

brew install fastlane

Configuration

  • Git repository for storing provisioning profiles and certificates
  • Provisioning profiles and certificates must have been previously stored in the above repositories by fastlane match.

Usage

Simple usage

- uses: akiojin/setup-xcode-environment-github-action@v2
  with:
    type: 'development'
    app-identifier: com.exmple.App
    team-id: ABC0123456
    git-url: 'https://github.com/certificates'
    git-passphase: ${{ secrets.APPLE_CERTIFICATE_GIT_PASSPHASE }}

Usage temporary keychain

- usas: setup-temporary-keychain-github-action@v1
  id: setup-temporary-keychain

- uses: akiojin/setup-xcode-environment-github-action@v2
  id: setup-xcode-environment
  with:
    type: 'enterprise'
    app-identifier: com.exmple.App
    team-id: ABC0123456
    git-url: 'https://github.com/certificates'
    git-passphase: ${{ secrets.APPLE_CERTIFICATE_GIT_PASSPHASE }}
    keychain: ${{ steps.setup-temporary-keychain.outputs.keychain }}
    keychain-password: ${{ steps.setup-temporary-keychain.outputs.keychain-password }}

Arguments

NameRequiredTypeDefaultDescription
typetruestringDefine the profile type, can be appstore, adhoc, development, enterprise, developer_id, mac_installer_distribution.
app-identifiertruestringThe bundle identifier(s) of your app (comma-separated string or array of strings).
team_idtruestringThe ID of your Developer Portal team if you're in multiple teams.
git-urltruestringURL to the git repo containing all the certificates.
git-passphrasetruestringWhen running match for the first time on a new machine, it will ask you for the passphrase for the Git repository.This is an additional layer of security: each of the files will be encrypted using openssl.
git-branchfalsestringmasterSpecific git branch to use.
keychainfalsestring""Path of the keychain to use. If omitted, the default login keychain is used.
keychain-passwordfalsestring""Password for the keychain if specified in the keychain parameter;default login keychain password if the kerchain parameter is omitted.

License

Any contributions made under this project will be governed by the MIT License.