File tree 1 file changed +58
-0
lines changed
1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ # workflow to build docs site and publish to github pages
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches : main
7
+ pull_request :
8
+ branches : main
9
+
10
+ name : sverto-publish
11
+
12
+ permissions :
13
+ contents : read
14
+ pages : write
15
+ id-token : write
16
+
17
+ concurrency :
18
+ group : " pages"
19
+ cancel-in-progress : false
20
+
21
+ jobs :
22
+ build-docs :
23
+ runs-on : " ubuntu-latest"
24
+ env :
25
+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+ - name : Install Quarto
29
+ uses : quarto-dev/quarto-actions/setup@v2
30
+ with :
31
+ version : 1.5.25
32
+ - name : Install Node
33
+ uses : actions/setup-node@v4
34
+ with :
35
+ node-version : 20
36
+ - name : Install Sverto docs npm dependencies
37
+ run : npm install
38
+ working-directory : ./docs
39
+ - name : Create docs _extensions folder
40
+ run : mkdir docs/_extensions
41
+ shell : bash
42
+ - name : Copy Sverto extension into docs
43
+ run : cp -rf _extensions/sverto docs/_extensions/sverto
44
+ shell : bash
45
+ - name : Render sverto docs
46
+ uses : quarto-dev/quarto-actions/render@v2
47
+ with :
48
+ path : docs
49
+ - name : Setup Pages
50
+ uses : actions/configure-pages@v5
51
+ - name : Upload docs/ artifact
52
+ uses : actions/upload-pages-artifact@v3
53
+ with :
54
+ path : " ./docs"
55
+ - name : Deploy to GitHub Pages
56
+ id : deployment
57
+ uses : actions/deploy-pages@v4
58
+
You can’t perform that action at this time.
0 commit comments