How do I programmatically upload a file to a github repo's Downloads area?
ant, git, github
Solution
That means using the GitHub V3 API in order to:
- create a download entry on your GitHub repo download page
- upload the file to S3
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"
Problem
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.