Skip to content

Commit 36b882c

Browse files
use plotlydocbot to trigger documentation deployment
1 parent 09d881b commit 36b882c

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.circleci/config.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- add_ssh_keys:
1111
fingerprints:
12-
- "32:3b:e8:1d:9a:32:6f:ca:ca:9e:f1:ce:e2:8a:e8:03"
12+
- "dc:5f:39:48:00:b4:72:34:e1:d2:c4:e1:1f:d1:e2:ce" #plotlydocbot
1313
- checkout
1414
- restore_cache:
1515
keys:
@@ -53,14 +53,28 @@ jobs:
5353
if [ "${CIRCLE_BRANCH}" == "master" ]; then
5454
cd build
5555
git init
56-
git config user.name joedamiba
57-
git config user.email joseph.damiba@plot.ly
56+
git config user.name plotlydocbot
57+
git config user.email accounts@plot.ly
5858
rm -rf r/*.html
5959
sed -i.bkp 's/<!--.*-->//g' r/*md && rm r/*.bkp
6060
rm -rf ggplot2/*.html
6161
sed -i.bkp 's/<!--.*-->//g' ggplot2/*md && rm ggplot2/*.bkp
6262
git add *
63-
git commit -m build
63+
git commit -m "build of https://github.com/plotly/plotly.r-docs/commit/${CIRCLE_SHA1}"
6464
git push --force git@github.com:plotly/plotly.r-docs.git master:built
6565
rm -rf .git
6666
fi
67+
68+
- run:
69+
name: trigger doc build
70+
command: |
71+
if [ "${CIRCLE_BRANCH}" == "master" ]; then
72+
git clone --depth=1 --branch=source-design-merge https://github.com/plotly/documentation.git
73+
cd documentation
74+
git config user.name plotlydocbot
75+
git config user.email accounts@plot.ly
76+
git commit --allow-empty -m "deploying https://github.com/plotly/plotly.r-docs/commit/${CIRCLE_SHA1}"
77+
git push
78+
cd ..
79+
rm -rf documentation
80+
fi

0 commit comments

Comments
 (0)