From 188b9c432f185dd67c47531c1e7c890be8c667b0 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Sat, 20 Jan 2018 09:09:29 -0500 Subject: [PATCH] Actually uploading the sha file would be good #123 --- .travis/deploy_script.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.travis/deploy_script.sh b/.travis/deploy_script.sh index f783e250..9e7bccc1 100755 --- a/.travis/deploy_script.sh +++ b/.travis/deploy_script.sh @@ -48,16 +48,10 @@ if [ "$TRAVIS" = "true" ]; then cd /tmp tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms - #echo "running rsync" - #rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/ - echo "uploading to s3" cd /tmp/ sha256sum $TAR_NAME > "$FILE_NAME.sha256" - artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION - - #cd $TRAVIS_BUILD_DIR - #artifacts upload --target-paths "/" VERSION + artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION $FILE_NAME.sha256 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