From 0e046bcf485d628731c8ad1eb03156b19fbdc26e Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 4 Jan 2018 21:45:45 -0600 Subject: [PATCH] Add travis webhook for new build --- .travis/deploy_script.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index 26dae889..26c10805 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -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