How to programmatically upload a file to the github repo download area?

I have an ANT assembly that creates files (zip, jar, etc.). I want these files to be uploaded to the github repo Downloads area, either through the Tasks available to me using ANT (I tried scp to no avail), through Jenkins (I tried Publish via SSH to no avail) or some in other ways.

Thanks for the guide.

+4
source share
2 answers

This means using the GitHub V3 API to:

See these ruby ​​scripts for a practical example of using this API:
" lib/octokit/client/downloads.rb ".

If you need to do this from ant, you could consider the HTTP-Post ant -contrib task .
Or execute ant script commands such as " HTTPie: cURL for people "
Or use Jenkins directly, as in " Connect Github to secure Jenkins via an HTTP post-fixed hook "

+7
source

You need a custom step when you script curl.

+1
source

All Articles