Bintray upload from pull requests
Closed this issue · 1 comments
fredrikaverpil commented
This may be possible if using their REST API (?):
# CREATE VERSION
curl -vvf -u${BINTRAY_USER}:${BINTRAY_API_KEY} -H "Content-Type: application/json" \
-X POST ${BINTRAY_URL}/packages/xxx/yyy/versions \
--data "{\"name\": \"${RELEASE_VERSION}\", \"github_use_tag_release_notes\": false }"
# UPLOAD
for f in repository/target/*.zip
do
echo "Uploading $f"
curl -X PUT -T $f -u ${BINTRAY_USER}:${BINTRAY_API_KEY} \
-H "X-Bintray-Package:update-sites" \
-H "X-Bintray-Version:${RELEASE_VERSION}" \
-H "X-Bintray-Explode:1" \
${BINTRAY_URL}/content/stuffs//${RELEASE_VERSION}/
done
fredrikaverpil commented
It'll only work if using the unhashed API key.