From a1b9894f970cac5350a95169da778ef03587593d Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 19 Jan 2018 18:14:11 -0500 Subject: [PATCH] Add version number file to s3 --- .travis/deploy_script.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index 211294cc..6607914f 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -52,7 +52,10 @@ if [ "$TRAVIS" = "true" ]; then echo "uploading to s3" cd /tmp/ - artifacts upload --target-paths "/" $TAR_NAME + artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION + + cd $TRAVIS_BUILD_DIR + artifacts upload --target-paths "/" VERSION curl -X POST --data "{\"content\": \"A new build is available at http://downloads.phpvms.net/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL fi