diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1091ec4 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: Build Unity Project + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + unityVersion: [2022.3.46f1] + 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 }} + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: Build + path: build \ No newline at end of file diff --git a/.gitignore b/.gitignore index e0bdb24..a3dbeae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Repository .idea/** /Galagan/.idea/** +*.zip # This .gitignore file should be placed at the root of your Unity project directory #