Skip to content

Commit 2f501f9

Browse files
committed
Added back the deploy on PR - Clean CI 8
1 parent 98e71f7 commit 2f501f9

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

.github/workflows/docs_deploy_preview.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,45 @@ on:
1414

1515
jobs:
1616

17+
build-docs:
18+
name: Build Production 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+
1745
deploy-preview-docs:
18-
name: Deploy Documentation
46+
name: Deploy Preview Documentation
1947
runs-on: ubuntu-22.04
2048
defaults:
2149
run:
2250
shell: bash
2351
steps:
24-
- uses: actions/checkout@v2
52+
- uses: actions/checkout@v3
2553
with:
2654
submodules: true
27-
- uses: actions/setup-python@v2
55+
- uses: actions/setup-python@v4
2856
with:
2957
python-version: '3.10'
3058
- name: Deploy Preview

.github/workflows/docs_deploy_prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
jobs:
1616

1717
build-docs:
18-
name: Build ESP-Docs
18+
name: Build Production ESP-Docs
1919
runs-on: ubuntu-22.04
2020
defaults:
2121
run:
@@ -43,7 +43,7 @@ jobs:
4343
path: docs
4444

4545
deploy-preview-docs:
46-
name: Deploy Documentation
46+
name: Deploy Production Documentation
4747
runs-on: ubuntu-22.04
4848
defaults:
4949
run:

0 commit comments

Comments
 (0)