Skip to content

Commit

Permalink
Restores the checks to ignore PR's and things.
Browse files Browse the repository at this point in the history
  • Loading branch information
OPC CI committed Jul 9, 2018
1 parent 6ddd17f commit 0748da1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down Expand Up @@ -49,10 +49,10 @@ git config user.name "OPC CI"
git config user.email "[email protected]"

# 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 ./ ../../
Expand Down

0 comments on commit 0748da1

Please sign in to comment.