diff --git a/.travis/after_success.sh b/.travis/after_success.sh index cd6abd13f..46b560df5 100644 --- a/.travis/after_success.sh +++ b/.travis/after_success.sh @@ -3,6 +3,12 @@ # retrieve upload tool wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh +# only create release for master +if [ "$TRAVIS_BRANCH" != "master" ] +then + export TRAVIS_EVENT_TYPE=pull_request +fi + if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # upload final package @@ -12,12 +18,6 @@ elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq - # only create release for master - if [ "$TRAVIS_BRANCH" != "master" ] - then - export TRAVIS_EVENT_TYPE=pull_request - fi - # upload final package bash upload.sh Olive*.AppImage*