Skip to content

Commit bc9a78a

Browse files
trigger documentation deployment automatically
1 parent bf7426c commit bc9a78a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.circleci/config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ jobs:
397397
steps:
398398
- add_ssh_keys:
399399
fingerprints:
400-
- "3e:4b:19:1c:c2:d1:92:dd:bf:f8:c9:d6:a6:78:69:2a"
400+
- "3e:4b:19:1c:c2:d1:92:dd:bf:f8:c9:d6:a6:78:69:2a" #plotly.py-docs (built)
401+
- "c0:55:31:66:74:4b:c8:fb:46:d4:b6:4e:5d:ba:81:b7" #documentation (s-d-m)
401402

402403
- checkout
403404

@@ -459,6 +460,18 @@ jobs:
459460
rm -rf build/html build/ipynb
460461
cd ..
461462
463+
- run:
464+
name: trigger doc build
465+
command: |
466+
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
467+
git clone --depth=1 --branch=source-design-merge https://github.com/plotly/documentation.git
468+
cd documentation
469+
git commit --allow-empty -m "deploying https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
470+
git push
471+
cd ..
472+
rm -rf documentation
473+
fi
474+
462475
- run:
463476
name: make doc
464477
command: |

0 commit comments

Comments
 (0)