Skip to content

Part two of the light familiar tutorial. Almost there...just a weird … #106

Part two of the light familiar tutorial. Almost there...just a weird …

Part two of the light familiar tutorial. Almost there...just a weird … #106

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:
# 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