Created
November 22, 2014 16:52
-
-
Save klaeufer/1962fc012ec492a51060 to your computer and use it in GitHub Desktop.
Create Bintray package using curl and REST API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# put in ~/.curlrc: user=BintrayUser:BintrayAPIKey | |
ORG=$1 | |
PACKAGE=$2 | |
curl -i -H "Content-Type: application/json" -d "{ \"name\":\"${PACKAGE}\",\"labels\":[\"android\",\"scala\",\"cse\",\"mobile\",\"oop\",\"designpatterns\"],\"website_url\":\"http://lucoodevcourse.github.io\",\"issue_tracker_url\":\"https://github.com/${ORG}/${PACKAGE}/issues\",\"github_repo\":\"${ORG}/${PACKAGE}\",\"github_release_notes_file\":\"README.md\",\"public_download_numbers\":true,\"public_stats\":true,\"vcs_url\":\"https://github.com/${ORG}/${PACAKGE}\",\"licenses\":[\"MIT\"] }" https://bintray.com/api/v1/packages/${ORG}/generic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment