4

I have an ANT build which creates files (zip, jar, etc). I wish to push these files to my github repo's "Downloads" area, either via Tasks available to me with ANT (I've tried scp to no avail), via Jenkins (I've tried "Publish over SSH", to no avail) or some other means.

Thanks for guidance.

marc esher
  • 4,871
  • 3
  • 36
  • 51

2 Answers2

7

That means using the GitHub V3 API in order to:

See those ruby scripts as a practical example of how this API is used:
"lib/octokit/client/downloads.rb".

If you need to do it from ant though, you could consider the HTTP-Post task of ant-contrib.
Or have your ant script calls commands like "HTTPie: cURL for Humans"
Or use directly Jenkins, as in "Connect Github to secured Jenkins via HTTP Post-Commit Hook"

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

You need a custom step where you script curl.

Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141