Skip to content

Commit

Permalink
Make Travis CI build tagged releases and upload binaries to them auto…
Browse files Browse the repository at this point in the history
…matically (#191)
  • Loading branch information
d1vanov authored and whoozle committed Jul 3, 2018
1 parent 561b286 commit a2a6254
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,21 @@ script:
fi
after_success:
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- |
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq &&
bash upload.sh ./Android*.AppImage*
wget https://github.com/d1vanov/ciuploadtool/releases/download/continuous-master/ciuploadtool_linux.zip &&
unzip ciuploadtool_linux.zip &&
chmod 755 ciuploadtool &&
./ciuploadtool ./Android*.AppImage*
elif [ "${TRAVIS_OS_NAME}" = "osx" ]; then
bash upload.sh AndroidFileTransferForLinux.dmg
wget https://github.com/d1vanov/ciuploadtool/releases/download/continuous-master/ciuploadtool_mac.zip &&
unzip ciuploadtool_mac.zip &&
chmod 755 ciuploadtool &&
./ciuploadtool AndroidFileTransferForLinux.dmg
fi
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
only:
- master
- /^v\d+\.\d+$/

0 comments on commit a2a6254

Please sign in to comment.