Skip to content

Commit

Permalink
chore(travis): make demos update actually push
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Apr 1, 2014
1 parent adede32 commit 7ec9e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/site/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,15 @@ function demos {
cp -Rf $PROJECT_DIR/demos/* demos

CHANGES=$(git status --porcelain)
VERSION=$(readJsonProp "package.json" "version")
VERSION=$(readJsonProp "$PROJECT_DIR/package.json" "version")

# if no changes, don't commit
if [[ "$CHANGES" == "" ]]; then
echo "-- No changes detected in demos for $VERSION; demos not updated."
else
git add -A
git commit -am "demos: update for $VERSION"
git push -q origin gh-pages

echo "-- Updated deoms for $VERSION successfully!"
fi
Expand Down

0 comments on commit 7ec9e17

Please sign in to comment.