reformat, fix projectPath

This commit is contained in:
2024-09-28 14:53:44 -05:00
parent 0b690b7619
commit d6549a7074

View File

@@ -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
- 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