Skip to content

Commit a871518

Browse files
authored
[Docs] CI changed deploy server from preview to production (espressif#9127)
* Changed the docs server from preview to deploy * Removed one extra line * Added on release action to the docs deploy CI * Fix CI workflow file name in the path
1 parent c0c687c commit a871518

File tree

3 files changed

+10
-57
lines changed

3 files changed

+10
-57
lines changed

.github/workflows/docs_build.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
- release/*
88
paths:
99
- 'docs/**'
10-
- '.github/workflows/docs.yml'
10+
- '.github/workflows/docs_build.yml'
1111
pull_request:
1212
paths:
1313
- 'docs/**'
14-
- '.github/workflows/docs.yml'
14+
- '.github/workflows/docs_build.yml'
1515

1616
jobs:
1717

@@ -42,4 +42,3 @@ jobs:
4242
with:
4343
name: docs
4444
path: docs
45-

.github/workflows/docs_deploy.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Documentation Build and Production Deploy CI
22

33
on:
4+
release:
5+
types: [published]
46
push:
57
branches:
68
- release/*
9+
- master
710
paths:
811
- 'docs/**'
9-
- '.github/workflows/docs.yml'
12+
- '.github/workflows/docs_deploy.yml'
1013

1114
jobs:
1215

@@ -27,12 +30,11 @@ jobs:
2730
env:
2831
# Deploy to production server
2932
# DOCS_BUILD_DIR: "./docs/_build/"
30-
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_PROD_PRIVATEKEY }}
31-
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PROD_PATH }}
33+
DOCS_DEPLOY_PRIVATEKEY: ${{ secrets.DOCS_KEY }}
34+
DOCS_DEPLOY_PATH: ${{ secrets.DOCS_PATH }}
3235
DOCS_DEPLOY_SERVER: ${{ secrets.DOCS_SERVER }}
33-
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_PROD_USER }}
34-
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_PROD_URL_BASE }}
35-
# Deploy to preview server
36+
DOCS_DEPLOY_SERVER_USER: ${{ secrets.DOCS_USER }}
37+
DOCS_DEPLOY_URL_BASE: ${{ secrets.DOCS_URL }}
3638
run: |
3739
sudo apt update
3840
sudo apt install python3-pip python3-setuptools

.github/workflows/docs_preview.yml

-48
This file was deleted.

0 commit comments

Comments
 (0)