Files
unity/unity-default/action.yaml
2023-08-05 23:45:12 -07:00

59 lines
1.9 KiB
YAML

name: unity-default
description: "Run a Unity command using defaults loaded from environment variables."
inputs:
platform:
description: "Unity Platform. Options: windows, windows32bit, mac, linux, android"
required: true
default: ${{ env.UNITY_PLATFORM }}
email:
description: "Unity email."
required: true
default: ${{ env.UNITY_USERNAME }}
password:
description: "Unity password."
required: true
default: ${{ env.UNITY_PASSWORD }}
command:
description: "Unity command to run."
required: false
unityBuilder:
description: "Whether or not to use the UnityBuilder instead of a Unity command."
required: false
buildDir:
description: "Where the built application ends up."
required: false
default: ${{ env.BUILD_DIR || 'build' }}
cacheVolume:
description: "Name of the volume to cache the Library folder to."
required: false
artifactsVolume:
description: "Name of the volume to copy the artifacts to."
required: true
default: ${{ env.ARTIFACTS_VOLUME }}
noGraphics:
description: "Whether or not to use the graphics device when running Unity."
required: false
default: ${{ env.NO_GRAPHICS || 'true' }}
artifactsDir:
description: "Name of the directory to copy the artifacts from."
required: true
default: artifacts
zipName:
description: "Name of the resulting zip file."
required: false
runs:
using: "composite"
steps:
- uses: act/unity/unity-composite@master
with:
platform: ${{ inputs.platform }}
email: ${{ inputs.email }}
password: ${{ inputs.password }}
command: ${{ inputs.command }}
unityBuilder: ${{ inputs.unityBuilder }}
buildDir: ${{ inputs.buildDir }}
artifactsDir: ${{ inputs.artifactsDir }}
cacheVolume: ${{ inputs.cacheVolume }}
zipName: ${{ inputs.zipName }}
noGraphics: ${{ inputs.noGraphics }}