From a15165e893c9954cad3828de70137b5dd3e95955 Mon Sep 17 00:00:00 2001 From: Webber Date: Mon, 6 Jan 2020 23:44:10 +0100 Subject: [PATCH] update workflow for builder --- .github/workflows/main.yml | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa8b745..2daf27a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,12 @@ name: Actions 😎 + on: pull_request: {} push: { branches: [master] } +env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + jobs: requestManualActivationFile: name: Request manual activation file 🔑 @@ -114,28 +118,19 @@ jobs: name: Build for WebGL 🕸 runs-on: ubuntu-latest steps: - # Checkout repository (required to test local actions) - - name: Checkout repository - uses: actions/checkout@v1 - - # Configure builder - - name: Build project - id: buildStep - uses: webbertakken/unity-builder@v0.1 - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - UNITY_PROJECT_PATH: test-project - BUILD_NAME: TestBuild - BUILD_TARGET: WebGL - BUILDS_PATH: builds - BUILD_COMMAND: "" - - # Upload distributables - - name: Upload Build - uses: actions/upload-artifact@v1 + - uses: actions/checkout@v1 + - uses: webbertakken/unity-activate@v1 + - uses: webbertakken/unity-builder@master + with: + projectPath: "." + unityVersion: "2019.2.11f1" + targetPlatform: WebGL + - uses: webbertakken/unity-return-license@v1 + if: always() + - uses: actions/upload-artifact@v1 with: name: Build - path: ${{ steps.buildStep.outputs.allBuildsPath }} + path: build activateAndThenReturnLicense: name: returnLicense 🎈