Files
unity/unity-project/action.yaml
2023-03-19 01:39:53 -07:00

56 lines
1.6 KiB
YAML

name: unity-project
description: "Run a Unity command using a project's version and a build target."
inputs:
projectPath:
description: "Path to the Unity project."
required: true
default: "."
platform:
description: "Unity Platform. Options: windows, windows32bit, mac, linux, android"
required: true
serial:
description: "Unity license serial number. Or 'personal' for a personal license."
required: true
default: personal
email:
description: "Unity email."
required: true
password:
description: "Unity password."
required: true
command:
description: "Unity command to run."
required: false
runs:
using: "composite"
steps:
- name: "Get Unity Version."
id: getVersion
uses: act/unity/unity-get-version@master
with:
projectPath: ${{ inputs.projectPath }}
- name: "Get Unity buildTarget."
id: getTarget
uses: act/unity/unity-get-buildtarget@master
with:
platform: ${{ inputs.platform }}
- name: "Library"
uses: act/common/docker/docker-cp@master
with:
volume: library2
toPath: Library
- name: "Run Unity command."
uses: act/unity/unity-command@master
with:
platform: ${{ inputs.platform }}
version: ${{ steps.getVersion.outputs.projectVersion }}
serial: ${{ inputs.serial }}
email: ${{ inputs.email }}
password: ${{ inputs.password }}
command: -projectPath ${{ inputs.projectPath }} -buildTarget ${{ steps.getTarget.outputs.buildTarget }} ${{ inputs.command }}
- uses: act/common/docker/docker-cp@master
with:
recreateVolume: true
volume: library
fromPath: Library