Skip to content

More light fixes.

More light fixes. #538

Workflow file for this run

name: DeployToPages
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: DevBuild
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: false
haskell: true
large-packages: true
docker-images: true
swap-storage: true
# Checkout
- name: Checkout repository
uses: actions/checkout@v4
# Cache
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ hashFiles('Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Build
- name: Build project
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 Build as Artifact
id: upload
uses: actions/upload-pages-artifact@v3
with:
path: build/WebGL/WebGL
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4