File tree Expand file tree Collapse file tree 3 files changed +1884
-0
lines changed Expand file tree Collapse file tree 3 files changed +1884
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Deploy documentation to gh-pages"
2+ run-name : " Deploy of documentation by @${{ github.triggering_actor }} (${{ github.ref }})"
3+
4+ on :
5+ workflow_dispatch :
6+
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.ref }}-docs-deploy
9+ cancel-in-progress : true
10+
11+ jobs :
12+ deploy :
13+ name : " Deploy to GH Pages"
14+ runs-on : ubuntu-latest
15+
16+ permissions :
17+ pages : write # to deploy to Pages
18+ id-token : write # to verify the deployment originates from an appropriate source
19+
20+ environment :
21+ name : github-pages
22+ url : ${{ steps.deployment.outputs.page_url }}
23+
24+ steps :
25+ - name : Checkout code
26+ uses : actions/checkout@v4
27+
28+ - name : Set up Node.js
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : " 22.13.0"
32+ cache : " npm"
33+
34+ - name : Cache base node_modules
35+ uses : actions/cache@v4
36+ with :
37+ path : node_modules
38+ key : ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
39+ restore-keys : ${{ runner.os }}-node-base
40+
41+ - name : Cache examples node_modules
42+ uses : actions/cache@v4
43+ with :
44+ path : examples/node_modules
45+ key : ${{ runner.os }}-node-${{ hashFiles('examples/package-lock.json') }}
46+ restore-keys : ${{ runner.os }}-node-docs
47+
48+ - name : Install all dependencies
49+ run : |
50+ npm ci
51+ npm --prefix examples ci
52+
53+ - name : Build api and examples docs
54+ run : |
55+ npm run makedocs
56+ npm --prefix examples run build
57+
58+ - name : Publish to GH Pages
59+ id : deployment
60+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ v22.19.0
You can’t perform that action at this time.
0 commit comments