Yet another attempt to deploy #7
This file contains hidden or 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: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-publish-live-demo: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| echo "Using npm install instead of npm ci to avoid rollup optional-deps issue" | |
| rm -rf node_modules package-lock.json || true | |
| npm install | |
| - name: Setup node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Build demos and typedoc | |
| run: | | |
| npm ci | |
| npm run build:demo | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| branch: demo # The branch the action should deploy to. | |
| folder: dist # The folder the action should deploy. |