22name : Deploy static content to Pages
33
44on :
5- # Runs on pushes targeting the default branch
65 push :
7- branches : ["main"]
6+ branches :
7+ - main
8+ tags :
9+ - v*
10+ pull_request :
811
912 # Allows you to run this workflow manually from the Actions tab
1013 workflow_dispatch :
@@ -18,7 +21,7 @@ permissions:
1821# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1922# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2023concurrency :
21- group : " pages"
24+ group : ' pages'
2225 cancel-in-progress : false
2326
2427jobs :
@@ -28,16 +31,40 @@ jobs:
2831 name : github-pages
2932 url : ${{ steps.deployment.outputs.page_url }}
3033 runs-on : ubuntu-latest
34+ strategy :
35+ matrix :
36+ node-version : [20.x]
37+ if : startsWith(github.ref, 'refs/tags/v')
3138 steps :
3239 - name : Checkout
3340 uses : actions/checkout@v4
41+
42+ - name : Use Node.js ${{ matrix.node-version }}
43+ uses : actions/setup-node@v3
44+ with :
45+ node-version : ${{ matrix.node-version }}
46+ registry-url : ' https://registry.npmjs.org'
47+
48+ - uses : pnpm/action-setup@v4
49+ name : Install pnpm
50+ id : pnpm-install
51+ with :
52+ version : 10
53+ run_install : false
54+
55+ - name : Install dependencies
56+ run : pnpm install
57+
58+ - name : Generate docs
59+ run : pnpm typedoc --customJs typedoc/popover.js
60+
3461 - name : Setup Pages
3562 uses : actions/configure-pages@v5
3663 - name : Upload artifact
3764 uses : actions/upload-pages-artifact@v3
3865 with :
3966 # Upload entire repository
40- path : ' .'
67+ path : ' ./doc/ '
4168 - name : Deploy to GitHub Pages
4269 id : deployment
4370 uses : actions/deploy-pages@v4
0 commit comments