Add travis webhook for new build
This commit is contained in:
parent
da19152a1e
commit
0e046bcf48
@ -19,9 +19,9 @@ if [ "$TRAVIS" = "true" ]; then
|
|||||||
|
|
||||||
cd $TRAVIS_BUILD_DIR
|
cd $TRAVIS_BUILD_DIR
|
||||||
|
|
||||||
echo "Version:"
|
|
||||||
php artisan version:show --format compact --suppress-app-name > VERSION
|
php artisan version:show --format compact --suppress-app-name > VERSION
|
||||||
cat VERSION
|
VERSION=`cat VERSION`
|
||||||
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
@ -51,4 +51,7 @@ if [ "$TRAVIS" = "true" ]; then
|
|||||||
|
|
||||||
echo "running rsync"
|
echo "running rsync"
|
||||||
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/
|
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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user