Actually uploading the sha file would be good #123
This commit is contained in:
parent
5ca9127137
commit
188b9c432f
@ -48,16 +48,10 @@ if [ "$TRAVIS" = "true" ]; then
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
tar -czf $TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms
|
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"
|
echo "uploading to s3"
|
||||||
cd /tmp/
|
cd /tmp/
|
||||||
sha256sum $TAR_NAME > "$FILE_NAME.sha256"
|
sha256sum $TAR_NAME > "$FILE_NAME.sha256"
|
||||||
artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION
|
artifacts upload --target-paths "/" $TAR_NAME $TRAVIS_BUILD_DIR/VERSION $FILE_NAME.sha256
|
||||||
|
|
||||||
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user