Add checksum file for #123

This commit is contained in:
Nabeel Shahzad
2018-01-20 08:50:10 -05:00
parent 2cd45acbdf
commit fca4b0074f

View File

@@ -8,7 +8,8 @@ if [ "$TRAVIS" = "true" ]; then
PKG_NAME=master
fi
TAR_NAME="phpvms-7.0.0-$PKG_NAME.tar.gz"
FILE_NAME="phpvms-7.0.0-$PKG_NAME"
TAR_NAME="$FILE_NAME.tar.gz"
echo "Writing $TAR_NAME"
# delete all superfluous files
@@ -52,10 +53,11 @@ if [ "$TRAVIS" = "true" ]; then
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
#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