From 62c09b0fbf3ed9c18c178540440e782edcc8ea2d Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 26 Oct 2015 17:30:29 -0400 Subject: [PATCH] Use hc-releases to upload during dist --- scripts/dist.sh | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/scripts/dist.sh b/scripts/dist.sh index d1c2c4dda6..ef6c40385f 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -46,15 +46,10 @@ if [ -z $NOSIGN ]; then fi popd -# # Upload -# for ARCHIVE in ./pkg/dist/*; do -# ARCHIVE_NAME=$(basename ${ARCHIVE}) - -# echo Uploading: $ARCHIVE_NAME -# curl \ -# -T ${ARCHIVE} \ -# -umitchellh:${BINTRAY_API_KEY} \ -# "https://api.bintray.com/content/mitchellh/consul/consul/${VERSION}/${ARCHIVE_NAME}" -# done - -# exit 0 +# Upload +if [ -z $NORELEASE ]; then + echo "==> Uploading binaries..." + hc-releases -upload=./pkg/dist +fi + +exit 0