Skip to content

Commit

Permalink
Trying to build docs again
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Sep 13, 2019
1 parent b52cbaa commit 7f80bc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ci/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SHA=`git rev-parse --verify HEAD`

cd ../..
pwd

# Clone the existing gh-pages for this repo into out/
# Create a new empty branch if gh-pages doesn't exist yet (should only happen on first deply)
git clone $REPO out
Expand All @@ -77,7 +78,9 @@ ls -l
pwd
git checkout gh-pages || git checkout --orphan gh-pages
cd ..

pwd

rm -rf out/**/*
cp -r build/html/* out/
rm -rf out/.gitignore
Expand All @@ -91,7 +94,8 @@ echo "ADDING FILES"
echo "**************************************************************************************"
echo "Step 6: Pushing documentation to Github Pages."
echo "**************************************************************************************"
‘echo -e “Host *\n\tStrictHostKeyChecking no\n>> ~/.ssh/config’
git commit -m "Deploy to GitHub Pages: ${SHA}"
git push $SSH_REPO gh-pages
git push $SSH_REPO gh-pages --force

exit 0

0 comments on commit 7f80bc6

Please sign in to comment.