yukiarrr / unity-build-action

Build Unity project, and can run on Linux, Mac, Windows, or self-hosted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/unity-build-action@v0.6.1
  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/unity-build-action@v0.6.1
  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/ios-build-action@v1.2.0
  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 }}

About

Build Unity project, and can run on Linux, Mac, Windows, or self-hosted

License:MIT License


Languages

Language:C# 44.9%Language:JavaScript 27.6%Language:Shell 27.5%