Skip to content

Instantly share code, notes, and snippets.

@klaeufer
Created November 22, 2014 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klaeufer/1962fc012ec492a51060 to your computer and use it in GitHub Desktop.
Save klaeufer/1962fc012ec492a51060 to your computer and use it in GitHub Desktop.
Create Bintray package using curl and REST API
#!/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