From 52f5e5d8ef2cd1b2b57f57b90440b033318991b9 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 6 Mar 2017 23:39:42 -0600 Subject: [PATCH] Added 5s wait after publishing file to permit server to catch up and permit adding to download list. --- package/deploy-bintray.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package/deploy-bintray.sh b/package/deploy-bintray.sh index 178b7be26..db582f7ae 100755 --- a/package/deploy-bintray.sh +++ b/package/deploy-bintray.sh @@ -49,10 +49,12 @@ echo "Deploying $file to $version on Bintray repo $SLIC3R_PKG..." API=${BINTRAY_API_KEY} USER=${BINTRAY_API_USER} +echo "Creating version: $version" curl -X POST -d "{ \"name\": \"$version\", \"released\": \"ISO8601 $(date +%Y-%m-%d'T'%H:%M:%S)\", \"desc\": \"This version...\", \"github_release_notes_file\": \"RELEASE.txt\", \"github_use_tag_release_notes\": true, \"vcs_tag\": \"$version\" }" -u${USER}:${API} https://api.bintray.com/content/lordofhyphens/Slic3r/${SLIC3R_PKG}/versions +echo "Publishing ${file} to ${version}..." curl -H "X-Bintray-Package: $SLIC3R_PKG" -H "X-Bintray-Version: $version" -H 'X-Bintray-Publish: 1' -H 'X-Bintray-Override: 1' -T $file -u${USER}:${API} https://api.bintray.com/content/lordofhyphens/Slic3r/$(basename $1) -echo "Publishing $file..." -curl -X POST -u${USER}:${API} https://api.bintray.com/content/lordofhyphens/Slic3r/${SLIC3R_PKG}/$version/publish - +#curl -X POST -u${USER}:${API} https://api.bintray.com/content/lordofhyphens/Slic3r/${SLIC3R_PKG}/$version/publish +# Wait 5s for the server to catch up +sleep 5 curl -H 'Content-Type: application/json' -X PUT -d "{ \"list_in_downloads\":true }" -u${USER}:${API} https://api.bintray.com/file_metadata/lordofhyphens/Slic3r/$(basename $1)