Merge branch 'main' of github.com:CLAWS-UMICH/IRIS-2023-2024 into main #549
This file contains 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: Deploy π | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [closed] | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy π | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Cache Library | |
uses: actions/cache@v2 | |
with: | |
path: UnityWebGLDeploy/Library | |
key: Library-${{ github.sha }} | |
restore-keys: Library- | |
- name: Build project | |
uses: game-ci/unity-builder@v2 | |
env: | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} | |
with: | |
unityVersion: 2022.3.7f1 | |
targetPlatform: WebGL | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@4.1.3 | |
with: | |
branch: gh-pages | |
folder: build/WebGL/WebGL | |
commit-message: Deploy | |
single-commit: true | |
# Workflow from: https://github.com/Razenpok/unity-webgl-deploy/blob/master/.github/workflows/deploy.yml |