From 7ec9e17589a7f0e2d89a70273cfd9bfc625891dc Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Mon, 31 Mar 2014 21:02:18 -0600 Subject: [PATCH] chore(travis): make demos update actually push --- scripts/site/publish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/site/publish.sh b/scripts/site/publish.sh index 772b91e9c35..3dec96faebf 100755 --- a/scripts/site/publish.sh +++ b/scripts/site/publish.sh @@ -87,7 +87,7 @@ 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 @@ -95,6 +95,7 @@ function demos { else git add -A git commit -am "demos: update for $VERSION" + git push -q origin gh-pages echo "-- Updated deoms for $VERSION successfully!" fi