Skip to content

feat: add demo and settings for github action. #21

feat: add demo and settings for github action.

feat: add demo and settings for github action. #21

Workflow file for this run

name: Build and Deploy Demo
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm install
- name: Build demo
run: npm run build:demo
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.ACTION }}
publish_dir: dist