Add version number file to s3

This commit is contained in:
Nabeel Shahzad 2018-01-19 18:14:11 -05:00
parent 53a6e4b3c5
commit a1b9894f97

View File

@ -52,7 +52,10 @@ if [ "$TRAVIS" = "true" ]; then
echo "uploading to s3" echo "uploading to s3"
cd /tmp/ 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 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 fi