This is an automated email from the ASF dual-hosted git repository.

robertwb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam-wheels.git

commit 3f1d198cfebf7ad47804965f57b402deba1e8dec
Author: Robert Bradshaw <rober...@google.com>
AuthorDate: Wed Feb 13 13:05:12 2019 +0100

    Deploy artifacts one at a time.
---
 deploy_bintray.sh | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/deploy_bintray.sh b/deploy_bintray.sh
index 91b697e..c2fa6ec 100755
--- a/deploy_bintray.sh
+++ b/deploy_bintray.sh
@@ -1,19 +1,16 @@
 # Define custom utilities for deploying to bintray on travis
 
-set -e
-
-BINTRAY_API_URL=https://bintray.com/api/v1
+BINTRAY_API_URL="https://bintray.com/api/v1";
 TRAVIS_BUILD_DIR=travis-build-dir
 
 function deploy {
-  cd ${TRAVIS_BUILD_DIR}/wheelhouse
-  # Push a single tarball to simplify fetching them all.
-  # Use -J to take advantage of cross-file redundancy for compression.
-  ARCHIVE=all-wheels-${VERSION}.tar.xz
-  tar -cvJf ${ARCHIVE} *.whl 
-  curl \
-    -v \
-    -T ${ARCHIVE} \
-    -u "${BINTRAY_USERNAME}:${BINTRAY_SECRET}" \
-    
"${BINTRAY_API_URL}/content/${BEAM_BINTRAY_PATH}/${VERSION}/${ARCHIVE}?publish=1&override=1"
+  for artifact in ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl; do
+    echo $artifact
+    curl \
+      -T $artifact \
+      -u "${BINTRAY_USERNAME}:${BINTRAY_SECRET}" \
+      -H "X-Bintray-Version: ${VERSION}" \
+      "${BINTRAY_API_URL}/content/${BEAM_BINTRAY_PATH}/${VERSION}/$(basename 
$artifact)?publish=1&override=1"
+    echo $?
+  done
 }

Reply via email to