From 630a4b765baabe395f2b3b9b941c99c356ec1922 Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sat, 14 Sep 2024 21:41:46 -0700 Subject: [PATCH] authenticate license --- .github/actions/build-assetbundles/action.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/actions/build-assetbundles/action.yml b/.github/actions/build-assetbundles/action.yml index c19a801..e4e945e 100644 --- a/.github/actions/build-assetbundles/action.yml +++ b/.github/actions/build-assetbundles/action.yml @@ -13,6 +13,9 @@ inputs: assetbundle-dir: description: Destination for built assetbundles + unity-license: + description: Your Unity License file contents + runs: using: composite steps: @@ -30,6 +33,14 @@ runs: --volume ${{ github.workspace }}:/github/workspace build-assetbundle + - name: Authenticate Unity License + shell: bash + run: | + echo $UNITY_ULF >> 'unity_license.ulf' + docker exec build-assetbundle unity-editor -batchmode -manualLicenseFile unity_license.ulf -logfile + env: + UNITY_ULF: ${{ inputs.unity-license }} + - name: Copy editor tools into project shell: bash run: |