# Build the page and publish it as this repository's site, on every push to # main. The site lands at /tutorials/laplace-dirichlet/site/. # # Two mochi-specific points. `actions/cache` is not implemented, so # `setup-node` must not be given `cache: npm`; the install is done cold every # run. And the site is served from a sub-path rather than a domain root, which # is why vite.config.ts sets `base: './'` — the build emits relative URLs and # needs no base path passed in. name: site on: push: branches: [main] workflow_dispatch: concurrency: group: site cancel-in-progress: false jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 # puppeteer is only used by scripts/browser-test.mjs, which does not run # here; skip the ~150 MB Chrome download - run: npm ci env: PUPPETEER_SKIP_DOWNLOAD: "true" - run: npm run build - uses: actions/upload-pages-artifact@v3 with: path: dist - uses: actions/deploy-pages@v4