Add travis webhook for new build

This commit is contained in:
Nabeel Shahzad 2018-01-04 21:45:45 -06:00
parent da19152a1e
commit 0e046bcf48

View File

@ -19,9 +19,9 @@ if [ "$TRAVIS" = "true" ]; then
cd $TRAVIS_BUILD_DIR
echo "Version:"
php artisan version:show --format compact --suppress-app-name > VERSION
cat VERSION
VERSION=`cat VERSION`
echo "Version: $VERSION"
make clean
@ -51,4 +51,7 @@ if [ "$TRAVIS" = "true" ]; then
echo "running rsync"
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/
curl -X POST --data '{"content": "A new build is available at http://phpvms.net/downloads/$TAR_NAME ($VERSION)"}' -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL
fi