File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy docs site to GitHub Pages
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : read
8+ pages : write
9+ id-token : write
10+
11+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
12+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
13+ concurrency :
14+ group : ' pages'
15+ cancel-in-progress : false
16+
17+ jobs :
18+ # Build job
19+ build :
20+ runs-on : ubuntu-latest
21+ defaults :
22+ run :
23+ working-directory : ./docs-site
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ - name : Setup Node
28+ uses : actions/setup-node@v4
29+ with :
30+ node-version : ' 22'
31+ cache : ' npm'
32+ cache-dependency-path : docs-site/package-lock.json
33+ - name : Install dependencies
34+ run : npm ci
35+ - name : Build
36+ run : npm run build
37+ - name : Upload artifact
38+ uses : actions/upload-pages-artifact@v3
39+ with :
40+ path : ./docs-site/build
41+
42+ # Deployment job
43+ deploy :
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ runs-on : ubuntu-latest
48+ needs : build
49+ steps :
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments