Skip to content

fix: switch to 3d renderer, camera and lighting. Use the new player a… #17

fix: switch to 3d renderer, camera and lighting. Use the new player a…

fix: switch to 3d renderer, camera and lighting. Use the new player a… #17

Workflow file for this run

name: GameCI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: write
jobs:
buildWebGL:
name: Build for WebGL
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Restore Library cache
uses: actions/cache@v4
with:
path: Library
key: Library-build-WebGL
restore-keys: |
Library-build-
Library-
- name: Build Unity
uses: game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: WebGL
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: build-WebGL
path: build/WebGL
deployPages:
needs: buildWebGL
name: Deploy to Github Pages
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: build-WebGL
path: build
- name: Deploy
# uses: JamesIves/github-pages-deploy-action@v4.4.1
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: build/WebGL