Skip to content

fix: Properly add custom gamepad example to vite config #41

fix: Properly add custom gamepad example to vite config

fix: Properly add custom gamepad example to vite config #41

# For more information see: https://github.com/marketplace/actions/deploy-to-github-pages
name: Build Site and Deploy to Github Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup pnpm 📦
uses: pnpm/action-setup@v4.0.0
- name: Install and Build 🔧 # This project is built using pnpm and outputs the result to the 'dist' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
pnpm install
pnpm run docs:build
pnpm run examples:build
cp -r docs examples/dist
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.6.9
with:
folder: examples/dist # The folder the action should deploy.