Skip to content

Commit 30710ef

Browse files
committed
Merge pull request #8 from vighneshbirodkar/circle_fix
Cause the build to fail when pushing docs is unsuccessful.
2 parents 9f0a945 + 406f7d8 commit 30710ef

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ci_scripts/push_doc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,10 @@ git config --global user.name $USERNAME
4444
git add -f ./$DOC_URL/
4545
git commit -m "$MSG"
4646
git push -f origin gh-pages
47+
if [ $? -ne 0 ]; then
48+
echo "Pushing docs failed"
49+
echo
50+
exit 1
51+
fi
4752

4853
echo $MSG

circle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ general:
5252
- "~/log.txt"
5353
# Restric the build to the branch master only
5454
branches:
55-
only:
56-
- master
55+
ignore:
56+
- gh-pages

0 commit comments

Comments
 (0)