Skip to content

Commit 98e71f7

Browse files
committed
Added back the deploy on PR - Clean CI 7
1 parent a88a9c9 commit 98e71f7

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/docs_deploy_preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Documentation Build and Deploy CI
1+
name: Documentation Preview Build and Deploy CI
22

33
on:
44
push:

.github/workflows/docs_deploy_prod.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Documentation Build and Deploy CI
1+
name: Documentation Production Build and Deploy CI
22

33
on:
44
push:
@@ -14,6 +14,34 @@ on:
1414

1515
jobs:
1616

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+
1745
deploy-preview-docs:
1846
name: Deploy Documentation
1947
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)