Skip to content

Added basic CI/CD infrastructure. #2

Added basic CI/CD infrastructure.

Added basic CI/CD infrastructure. #2

Workflow file for this run

name: Build
on:
push:
branches: ['main']
pull_request:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# ----------------------------------------------------------------------- Checkout
- name: Checkout
uses: actions/checkout@v4
# ----------------------------------------------------------------------- Restore library cache
- name: Restore library cache
uses: actions/cache@v3
with:
path: Library
key: Library-${{hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**')}}
restore-keys: |
Library-
# ----------------------------------------------------------------------- Build
- name: Build
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
buildsPath: Build
# ----------------------------------------------------------------------- Collect artifacts
- name: Collect build
uses: actions/upload-artifact@v4
with:
name: Build-WebGL
if-no-files-found: error
path: Build
- name: Collect GitHub Pages artifact
uses: actions/upload-pages-artifact@v3
path: Build

Check failure on line 46 in .github/workflows/Build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/Build.yml (Line: 46, Col: 9): Unexpected value 'path'
# ----------------------------------------------------------------------- Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4