Skip to content

Commit

Permalink
Uncommented instructions for Travis to push new API docs to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondap committed Mar 25, 2024
1 parent 165def6 commit 899fd05
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions jsdoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ echo "Generating documentation..."
./node_modules/.bin/jsdoc -c .jsdoc.json
echo "New documentation is in docs"

#
#echo "Hello, Travis! You there?"
#if [[ -z "${TRAVIS}" ]]; then
# echo "No Travis here. I'm done here."
# exit;
#else
# echo "Travis: Yup, here."
# cd docs || exit
# git config --global user.email "[email protected]"
# git config --global user.name "Travis-CI"
# git init
# git add .
# git commit -m "Latest docs Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
# git push -v --force "https://${GH_TOKEN}@github.com/APTrust/dart.git" master:gh-pages
#fi

echo "Hello, Travis! You there?"
if [[ -z "${TRAVIS}" ]]; then
echo "No Travis here. I'm done here."
exit;
else
echo "Travis: Yup, here."
cd docs || exit
git config --global user.email "[email protected]"
git config --global user.name "Travis-CI"
git init
git add .
git commit -m "Latest docs Travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
git push -v --force "https://${GH_TOKEN}@github.com/APTrust/dart.git" master:gh-pages
fi

0 comments on commit 899fd05

Please sign in to comment.