Skip to content
play

GitHub Action

Unity Build Action

v0.6.1 Latest version

Unity Build Action

play

Unity Build Action

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

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Unity Build Action

uses: yukiarrr/[email protected]

Learn more about this action in yukiarrr/unity-build-action

Choose a version

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 }}