File tree Expand file tree Collapse file tree 4 files changed +47
-209
lines changed Expand file tree Collapse file tree 4 files changed +47
-209
lines changed Original file line number Diff line number Diff line change 15
15
16
16
jobs :
17
17
18
- build-docs :
19
- name : Build ESP-Docs
20
- runs-on : ubuntu-22.04
21
- defaults :
22
- run :
23
- shell : bash
24
- steps :
25
- - uses : actions/checkout@v3
26
- with :
27
- submodules : true
28
- - uses : actions/setup-python@v4
29
- with :
30
- python-version : ' 3.10'
31
- - name : Build
32
- run : |
33
- sudo apt update
34
- sudo apt install python3-pip python3-setuptools
35
- # GitHub CI installs pip3 and setuptools outside the path.
36
- # Update the path to include them and run.
37
- cd ./docs
38
- PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
39
- PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
40
- - name : Archive Docs
41
- uses : actions/upload-artifact@v2
42
- with :
43
- name : docs
44
- path : docs
45
-
46
18
deploy-preview-docs :
47
19
name : Deploy Documentation
48
20
runs-on : ubuntu-22.04
49
21
defaults :
50
22
run :
51
23
shell : bash
52
24
steps :
53
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v3
54
26
with :
55
27
submodules : true
56
- - uses : actions/setup-python@v2
28
+ - uses : actions/setup-python@v4
57
29
with :
58
30
python-version : ' 3.10'
59
31
- name : Deploy Preview
87
59
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
88
60
cd $GITHUB_WORKSPACE/docs
89
61
deploy-docs
90
-
Original file line number Diff line number Diff line change
1
+ name : Documentation Build and Deploy CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - release/*
8
+ paths :
9
+ - ' docs/**'
10
+ - ' .github/workflows/docs.yml'
11
+ pull_request :
12
+ paths :
13
+ - ' docs/**'
14
+ - ' .github/workflows/docs.yml'
15
+
16
+ jobs :
17
+
18
+ build-docs :
19
+ name : Build ESP-Docs
20
+ runs-on : ubuntu-22.04
21
+ defaults :
22
+ run :
23
+ shell : bash
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ with :
27
+ submodules : true
28
+ - uses : actions/setup-python@v4
29
+ with :
30
+ python-version : ' 3.10'
31
+ - name : Build
32
+ run : |
33
+ sudo apt update
34
+ sudo apt install python3-pip python3-setuptools
35
+ # GitHub CI installs pip3 and setuptools outside the path.
36
+ # Update the path to include them and run.
37
+ cd ./docs
38
+ PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
39
+ PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
40
+ - name : Archive Docs
41
+ uses : actions/upload-artifact@v2
42
+ with :
43
+ name : docs
44
+ path : docs
45
+
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments