fredrikaverpil / pyside2-wheels

Unofficial PySide2 wheel building with Travis CI and AppVeyor
41 stars 6 forks source link

Bintray upload from pull requests #28

Closed fredrikaverpil closed 8 years ago

fredrikaverpil commented 8 years ago

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 8 years ago

It'll only work if using the unhashed API key.