@akiojin/setup-xocde-environment-github-action
v3.0.0
Published
GitHub Actions to configure provisioning and other settings required when signing at build time
Downloads
8
Readme
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
|Name|Required|Type|Default|Description|
|:--|:--|:--|:--|:--|
|type
|true
|string
||Define the profile type, can be appstore
, adhoc
, development
, enterprise
, developer_id
, mac_installer_distribution.|
|app-identifier
|true
|string
||The bundle identifier(s) of your app (comma-separated string or array of strings).|
|team_id
|true
|string
||The ID of your Developer Portal team if you're in multiple teams.|
|git-url
|true
|string
||URL to the git repo containing all the certificates.|
|git-passphrase
|true
|string
||When 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-branch
|false
|string
|master
|Specific git branch to use.|
|keychain
|false
|string
|""|Path of the keychain to use. If omitted, the default login keychain is used.|
|keychain-password
|false
|string
|""|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.