File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Documentation Build and Deploy CI
1
+ name : Documentation Preview Build and Deploy CI
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change 1
- name : Documentation Build and Deploy CI
1
+ name : Documentation Production Build and Deploy CI
2
2
3
3
on :
4
4
push :
14
14
15
15
jobs :
16
16
17
+ build-docs :
18
+ name : Build ESP-Docs
19
+ runs-on : ubuntu-22.04
20
+ defaults :
21
+ run :
22
+ shell : bash
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ with :
26
+ submodules : true
27
+ - uses : actions/setup-python@v4
28
+ with :
29
+ python-version : ' 3.10'
30
+ - name : Build
31
+ run : |
32
+ sudo apt update
33
+ sudo apt install python3-pip python3-setuptools
34
+ # GitHub CI installs pip3 and setuptools outside the path.
35
+ # Update the path to include them and run.
36
+ cd ./docs
37
+ PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
38
+ PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
39
+ - name : Archive Docs
40
+ uses : actions/upload-artifact@v2
41
+ with :
42
+ name : docs
43
+ path : docs
44
+
17
45
deploy-preview-docs :
18
46
name : Deploy Documentation
19
47
runs-on : ubuntu-22.04
You can’t perform that action at this time.
0 commit comments