From ee55f6fc0a7f068b57901fd1e8bd513ac2f2eff8 Mon Sep 17 00:00:00 2001 From: Scion Date: Wed, 29 Mar 2023 22:32:39 -0700 Subject: [PATCH] test --- unity-default/action.yaml | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 unity-default/action.yaml diff --git a/unity-default/action.yaml b/unity-default/action.yaml new file mode 100644 index 0000000..1300aba --- /dev/null +++ b/unity-default/action.yaml @@ -0,0 +1,53 @@ +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 }} + 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 }}