unity-build-action
unity-build-action copied to clipboard
Build Unity project, and can run on Linux, Mac, Windows, or self-hosted
Unity Build Action
This action build Unity project.
And, can run on Linux, Mac, Windows, or self-hosted.
Inputs
unity-version
Required For example, 2018.4.16f1
.
unity-username
Required Unity username.
unity-password
Required Unity password.
unity-serial
Required Unity serial.
build-target
Required Choose Android
, iOS
Mac
, Windows
, or WebGL
.
project-path
Unity project path. Default .
.
execute-method
Use by -executeMethod. Default UnityBuild.BatchBuild.Build
.
output-path
Output path of default execute-method. Default Output
.
command-args
Build command args.
Contributions Welcome!
If you have any other inputs you'd like to add, feel free to create PR.
Welcome your contributions!
Example usage
Unity Build
- uses: yukiarrr/[email protected]
with:
unity-version: 2018.4.12f1
unity-username: ${{ secrets.UNITY_USERNAME }}
unity-password: ${{ secrets.UNITY_PASSWORD }}
unity-serial: ${{ secrets.UNITY_SERIAL }}
build-target: iOS
And export ipa
- uses: yukiarrr/[email protected]
with:
unity-version: 2018.4.12f1
unity-username: ${{ secrets.UNITY_USERNAME }}
unity-password: ${{ secrets.UNITY_PASSWORD }}
unity-serial: ${{ secrets.UNITY_SERIAL }}
build-target: iOS
- uses: yukiarrr/[email protected]
with:
project-path: Output/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 }}