name: Build Demo
on: [push]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: '16'
      - run: npm install
        working-directory: ./javascript
      - run: npm install
        working-directory: ./demo
      - run: npm run build
        working-directory: ./demo
      - name: Publish Demo
        uses: peaceiris/actions-gh-pages@v3
        if: ${{ github.ref == 'refs/heads/main' }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./demo/dist

Add a GitHub Action to build the demo site
Add a GitHub Action to build the demo site

