Skip to content

Commit

Permalink
docs: fix publish-docs script
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseidl committed Jun 18, 2018
1 parent 8a41ad4 commit fb2bb40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/publish-docs-and-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ if [ "$TRAVIS_BRANCH" = "master" ]
git config --global user.email "${COMMIT_EMAIL}"
rm -rf ${DOWNLOAD_PATH}
git clone "${REPO_PATH}" ${DOWNLOAD_PATH}

cd ${DOWNLOAD_PATH}
npm install
git fetch --all
git checkout gh-pages
git pull --rebase origin master
git reset --hard origin/master
npm run clean:docs
npm run build:docs
npm run build:example
git add docs -f
git add example -f
CHANGESET=$(git rev-parse --verify HEAD)
git commit -m "Automated documentation/example build for changeset ${CHANGESET}."
git push origin gh-pages
git push -f origin gh-pages
cd ..
rm -rf ${DOWNLOAD_PATH}
fi

0 comments on commit fb2bb40

Please sign in to comment.