We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f5d21 commit cbc7c7fCopy full SHA for cbc7c7f
1 file changed
doc/update-gh-pages.sh
@@ -53,9 +53,16 @@ if [[ $(git -C ${repo_path} diff) ]]; then
53
From https://github.com/bluerobotics/ping-protocol/tree/"$repository_githash
54
git -C ${repo_path} commit -sm "${COMMIT_MESSAGE}"
55
56
+ echob "Check build type."
57
+ # Do not build pull requests
58
+ if [ ${TRAVIS_PULL_REQUEST} != "false" ]; then
59
+ echo "- Do not deploy PRs."
60
+ exit 0
61
+ fi
62
+
63
echob "Check branch."
- # Don't deploy pull requests or branches other than master
- if [ ${TRAVIS_PULL_REQUEST} != "false" ] || [ ${TRAVIS_BRANCH} != "master" ]; then
64
+ # Do only build master branch
65
+ if [ ${TRAVIS_BRANCH} != "master" ]; then
66
echo "- Only master branch will be deployed."
67
exit 0
68
fi
0 commit comments