Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]
# add new docs to the gh-pages branch
git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} ghpages
# copy all the docs file that might have changed, excluding versions.txt (to avoid overriding it)
cd docs
cp -R `ls --ignore 'versions.txt'` ../ghpages/
cd ../ghpages
cp -R docs/json/master/* ghpages/json/master
cp docs/*{.md,.html} ghpages/json/master
cp docs/home.html ghpages/json
cp docs/manifest.json ghpages
# allow "git add" to fail if there aren't new files.
set +e
git add .
Expand Down