Unity Build #6
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: | |
| workflow_dispatch: # run manually for now | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # 🔹 Activates Unity Personal using your Unity ID credentials | |
| - name: Activate Unity | |
| uses: game-ci/unity-activate@v2 | |
| with: | |
| unityVersion: 2022.3.18f1 | |
| env: | |
| UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
| UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
| # 🔹 Build for Windows (change platform if needed) | |
| - name: Build project | |
| uses: game-ci/unity-builder@v4 | |
| with: | |
| unityVersion: 2022.3.18f1 | |
| targetPlatform: StandaloneWindows64 | |
| - name: Upload build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: GameBuild | |
| path: build |