/ concept-collection / barycentric-rational
Sign in
concept-collection / barycentric-rational
barycentric-rational / .github / workflows / deploy.yml
44 lines · 922 BBlameHistoryRaw
1name: Deploy to GitHub Pages
3on:
4 push:
5 branches: [main]
6 workflow_dispatch:
8permissions:
9 contents: read
10 pages: write
11 id-token: write
13concurrency:
14 group: pages
15 cancel-in-progress: false
17jobs:
18 build:
19 runs-on: ubuntu-latest
20 steps:
21 - uses: actions/checkout@v4
22 - uses: actions/setup-node@v4
23 with:
24 node-version: 22
25 cache: npm
26 # puppeteer is only used by scripts/browser-test.mjs, which does not run
27 # here; skip the ~150 MB Chrome download
28 - run: npm ci
29 env:
30 PUPPETEER_SKIP_DOWNLOAD: 'true'
31 - run: npm run build
32 - uses: actions/upload-pages-artifact@v3
33 with:
34 path: dist
36 deploy:
37 needs: build
38 runs-on: ubuntu-latest
39 environment:
40 name: github-pages
41 url: ${{ steps.deployment.outputs.page_url }}
42 steps:
43 - id: deployment
44 uses: actions/deploy-pages@v4
moveopenescclose