From 0748da1dfffdfc0ef7dfec6c810bc14f19edb3c8 Mon Sep 17 00:00:00 2001 From: OPC CI Date: Mon, 9 Jul 2018 08:09:36 -0400 Subject: [PATCH] Restores the checks to ignore PR's and things. --- deploy.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/deploy.sh b/deploy.sh index 35ef9dc..1641b45 100755 --- a/deploy.sh +++ b/deploy.sh @@ -6,11 +6,11 @@ SOURCE_BRANCH="master" TARGET_BRANCH="gh-pages" # Pull requests and commits to other branches shouldn't try to deploy, just build to verify -# if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then -# echo "Skipping deploy; just doing a build." -# npm run docs:build -# exit 0 -# fi +if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then + echo "Skipping deploy; just doing a build." + npm run docs:build + exit 0 +fi # Save some useful information REPO=`git config remote.origin.url` @@ -49,10 +49,10 @@ git config user.name "OPC CI" git config user.email "support@opc.ai" # If there are no changes (e.g. this is a README update) then just bail. -# if [ -z `git diff --exit-code` ]; then -# echo "No changes to the spec on this push; exiting." -# exit 0 -# fi +if [ -z `git diff --exit-code` ]; then + echo "No changes to the spec on this push; exiting." + exit 0 +fi # Commit the "changes", i.e. the new version. # mv ./ ../../