diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4f6cd8c..edcefbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,22 +17,22 @@ jobs: # Cache - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: Library key: Library restore-keys: Library- - - name: Set up Unity - uses: game-ci/unity-setup@v2 + # Build + - name: Build project + uses: game-ci/unity-builder@v4 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: - unityVersion: 2021.3.5f1 # Set your Unity version - - - name: Test and Build - run: | - unity-editor -quit -batchmode -projectPath ./ -runTests -logFile /dev/stdout - unity-editor -quit -batchmode -projectPath ./ -executeMethod BuildScript.Build # Replace with your build method - + targetPlatform: WebGL + - uses: montudor/action-zip@v1 with: args: zip -qq -r dynamicpixels-unity.zip .