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