]> granicus.if.org Git - imagemagick/commitdiff
Do not upload continuous builds to GitHub Releases, only tagged builds
authorprobonopd <probonopd@users.noreply.github.com>
Sun, 12 Nov 2017 16:40:30 +0000 (17:40 +0100)
committerDirk Lemstra <dlemstra@users.noreply.github.com>
Sun, 12 Nov 2017 18:11:45 +0000 (19:11 +0100)
As per https://github.com/ImageMagick/ImageMagick/pull/858#issuecomment-343748901

.travis.yml

index f908b06a940887026a43c72f60d1fbc136ae10be..136a8543f5c65fdc66c46faffe279675dc82c1b1 100644 (file)
@@ -35,8 +35,8 @@ script:
 
 after_success:
   - find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
-  - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
-  - bash upload.sh ImageMagick*AppImage*
+  - if [ "$TRAVIS_BRANCH" == "TRAVIS_TAG" ] ; then wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh ; bash upload.sh ImageMagick*AppImage* ; fi
+  - if [ "$TRAVIS_BRANCH" != "TRAVIS_TAG" ] ; then curl --upload-file ./ImageMagick*.AppImage https://transfer.sh/ImageMagick-git.$(git rev-parse --short HEAD)-x86_64.AppImage ; fi
   
 branches:
   except: