GitHub Action
iOS Build Action
This action build iOS project. (.xcodeproj, .xcworkspace)
And can export to ipa, so it can be continuously delivered to DeployGate and TestFlight.
self-hosted is also supported. If you use self-hosted, install Xcode.
You can add a single p12 key+cert file with p12-base64
, or if you have key and cert in separate files you can add them with p12-key-base64
and p12-cer-base64
. One of the two options is required.
Required if single file: Base64 encoded p12 file (key + cert).
Required if split key/cert: Base64 encoded p12 key file.
Required if split key/cert: Base64 encoded certificate for the p12 key.
Required: Base64 encoded mobileprovision file. If you want to specify multiple files, you need to input in multiple lines and then use export-options
to specify the provisioning profile to use for each executable in your app.
- uses: yukiarrr/ios-build-action@v1.3.3
with:
mobileprovision-base64: |
${{ secrets.MY_MOBILEPROVISION_BASE64 }}
${{ secrets.YOUR_MOBILEPROVISION_BASE64 }}
Also note, when creating base64 encoded inputs, make sure they don't contain newlines, e.g.
openssl base64 -in MyAppProvisioning.mobileprovision -A
Required: .xcodeproj path.
Required: For example, "iOS Distribution"
.
Required: Team id.
.xcworkspace path. Default ""
.
Choose "app-store"
, "ad-hoc"
, "package"
"enterprise"
, "development"
, or "developer-id"
. Default "app-store"
.
For example, "Debug"
, "Release"
. Default "Release"
.
For example, "MyScheme"
.
Certificate password. Default ""
.
Output path of ipa. Default "output.ipa"
.
Targets to be updated with mobileprovision, code signing identity, etc. Split on new lines. Default ""
. (default to all targets)
- uses: yukiarrr/ios-build-action@v1.3.3
with:
update-targets: |
MyApp
YourApp
Deprecated, use update-targets
instead.
These targets will not use automatic code signing and instead use the identity specified in other inputs. Input targets separated by ","
. For example, "MyApp,YourApp"
. Default ""
. (default to all targets)
Path to an export options plist. Default ""
.
If you have any other inputs you'd like to add, feel free to create PR.
Welcome your contributions!
- uses: yukiarrr/ios-build-action@v1.3.3
with:
project-path: Unity-iPhone.xcodeproj
p12-base64: ${{ secrets.P12_BASE64 }}
mobileprovision-base64: ${{ secrets.MOBILEPROVISION_BASE64 }}
code-signing-identity: ${{ secrets.CODE_SIGNING_IDENTITY }}
team-id: ${{ secrets.TEAM_ID }}
workspace-path: Unity-iPhone.xcworkspace # optional
- uses: yukiarrr/ios-build-action@v1.3.3
with:
project-path: Unity-iPhone.xcodeproj
p12-key-base64: ${{ secrets.P12_KEY_BASE64 }}
p12-cer-base64: ${{ secrets.P12_CER_BASE64 }}
mobileprovision-base64: ${{ secrets.MOBILEPROVISION_BASE64 }}
code-signing-identity: ${{ secrets.CODE_SIGNING_IDENTITY }}
team-id: ${{ secrets.TEAM_ID }}
workspace-path: Unity-iPhone.xcworkspace # optional