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