Skip to content

Commit 986cae2

Browse files
committed
Added back the deploy on PR - Clean CI 9
1 parent 2f501f9 commit 986cae2

File tree

4 files changed

+47
-209
lines changed

4 files changed

+47
-209
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -15,45 +15,17 @@ on:
1515

1616
jobs:
1717

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-
4618
deploy-preview-docs:
4719
name: Deploy Documentation
4820
runs-on: ubuntu-22.04
4921
defaults:
5022
run:
5123
shell: bash
5224
steps:
53-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
5426
with:
5527
submodules: true
56-
- uses: actions/setup-python@v2
28+
- uses: actions/setup-python@v4
5729
with:
5830
python-version: '3.10'
5931
- name: Deploy Preview
@@ -87,4 +59,3 @@ jobs:
8759
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
8860
cd $GITHUB_WORKSPACE/docs
8961
deploy-docs
90-

.github/workflows/docs_build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+

.github/workflows/docs_deploy_preview.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/docs_deploy_prod.yml

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)