chore(travis); comment out publish of WIP docs

This commit is contained in:
Andy Joslin
2014-03-07 14:34:51 -07:00
parent 9c9162ec58
commit 127c12a2f2

View File

@@ -47,23 +47,23 @@ function updateConfig {
# Example: ./scripts/site/publish.sh --action=docs --version-name=nightly
function docs {
cd $PROJECT_DIR
gulp docs
# cd $PROJECT_DIR
# gulp docs
cd $IONIC_SITE_DIR
# cd $IONIC_SITE_DIR
CHANGES=$(git status --porcelain)
# CHANGES=$(git status --porcelain)
# if no changes, don't commit
if [[ "$CHANGES" != "" ]]; then
git add -A
git commit -am "docs: update for $VERSION_NAME"
git push -q -f git@github.com:ajoslin/ionic-site.git gh-pages
# # if no changes, don't commit
# if [[ "$CHANGES" != "" ]]; then
# git add -A
# git commit -am "docs: update for $VERSION_NAME"
# git push -q origin gh-pages
echo "-- Updated docs for $VERSION_NAME succesfully!"
else
echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
fi
# echo "-- Updated docs for $VERSION_NAME succesfully!"
# else
# echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
# fi
}
source $(dirname $0)/../utils.inc