Skip to content

Commit fc87f26

Browse files
committed
Added back the deploy on PR - Clean CI 19
1 parent a93c98f commit fc87f26

File tree

3 files changed

+9
-146
lines changed

3 files changed

+9
-146
lines changed

.github/workflows/docs_build.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ on:
1515

1616
jobs:
1717

18-
build-docs:
19-
name: Build ESP-Docs
18+
deploy-preview-docs:
19+
name: Deploy Documentation
2020
runs-on: ubuntu-22.04
2121
defaults:
2222
run:
@@ -28,44 +28,15 @@ jobs:
2828
- uses: actions/setup-python@v4
2929
with:
3030
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-
deploy-prod-docs:
47-
name: Deploy Documentation on Production
48-
runs-on: ubuntu-22.04
49-
defaults:
50-
run:
51-
shell: bash
52-
steps:
53-
- uses: actions/checkout@v3
54-
with:
55-
submodules: true
56-
- uses: actions/setup-python@v4
57-
with:
58-
python-version: '3.10'
59-
- name: Deploy Documentation
31+
- name: Deploy Preview
6032
env:
61-
# Deploy to production server
62-
# DOCS_BUILD_DIR: "./docs/_build/"
63-
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_PROD_PRIVATEKEY }}
64-
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PROD_PATH }}
65-
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }}
66-
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_PROD_USER }}
67-
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_PROD_URL_BASE }}
6833
# Deploy to preview server
34+
# DOCS_BUILD_DIR: "./docs/_build"
35+
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_KEY }}
36+
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }}
37+
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }}
38+
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_USER }}
39+
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }}
6940
run: |
7041
sudo apt update
7142
sudo apt install python3-pip python3-setuptools
@@ -80,4 +51,3 @@ jobs:
8051
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
8152
cd $GITHUB_WORKSPACE/docs
8253
deploy-docs
83-

.github/workflows/docs_deploy.yml

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

.github/workflows/docs_preview.yml

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

0 commit comments

Comments
 (0)