From d6549a7074662c9b77757781343db8b2237445aa Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 28 Sep 2024 14:53:44 -0500 Subject: [PATCH] reformat, fix projectPath --- .github/workflows/build.yml | 61 +++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1091ec4..c374856 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,38 +1,39 @@ name: Build Unity Project on: - push: - branches: - - master - pull_request: - branches: - - master + push: + branches: + - master + pull_request: + branches: + - master jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - strategy: - matrix: - unityVersion: [2022.3.46f1] - targetPlatform: [WebGL] + strategy: + matrix: + targetPlatform: + - WebGL - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Build Unity 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: auto - targetPlatform: ${{ matrix.targetPlatform }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 - - name: Upload artifact - uses: actions/upload-artifact@v4 - with: - name: Build - path: build \ No newline at end of file + - name: Build Unity Project + uses: game-ci/unity-builder@v4 + env: + UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + with: + projectPath: ./Galagan/ + unityVersion: auto + targetPlatform: ${{ matrix.targetPlatform }} + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: Build + path: build