File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build docs
2
+
3
+ on :
4
+ # run on push in main or rel_* branches excluding changes are only on example folders
5
+ push :
6
+ branches :
7
+ - main
8
+ - " rel_*"
9
+ # branches used to test the workflow
10
+ - " workflow_test_*"
11
+ paths-ignore :
12
+ - " examples/**"
13
+
14
+ permissions :
15
+ contents : read
16
+
17
+ jobs :
18
+ run-test :
19
+ name : build-docs
20
+ runs-on : " ubuntu-latest"
21
+
22
+ steps :
23
+ - name : Checkout repo
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Set up python
27
+ uses : actions/setup-python@v4
28
+ with :
29
+ python-version : " 3.11"
30
+
31
+ - name : Install dependencies
32
+ run : |
33
+ python -m pip install --upgrade pip
34
+ pip install --requirement doc/build/requirements.txt
35
+ pip list
36
+
37
+ - name : Build docs
38
+ run : |
39
+ cd doc/build
40
+ make html
41
+
42
+ - name : Create artifact
43
+ run : |
44
+ tar czf docs.tgz doc/build/output/html
45
+
46
+ - name : Upload artifact
47
+ uses : actions/upload-artifact@v3
48
+ with :
49
+ name : docs-archive
50
+ path : docs.tgz
You can’t perform that action at this time.
0 commit comments