jdlkfj #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unity Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build project | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Get Unity Version | |
| id: get-unity-version | |
| run: | | |
| version=$(grep m_EditorVersion ProjectSettings/ProjectVersion.txt | sed 's/m_EditorVersion: //') | |
| echo "version=$version" >> $GITHUB_OUTPUT | |
| - name: Build project | |
| uses: game-ci/unity-builder@v4 | |
| with: | |
| unityVersion: ${{ steps.get-unity-version.outputs.version }} | |
| targetPlatform: StandaloneWindows64 # Change to WebGL, Android, iOS etc. |