tags:

views:

188

answers:

1

I generate PDF documentation as part of my projects and I'd like them to stay in sync with my Git repository (it's not always possible for people to build their own since they often use proprietary fonts).

However, it's not really "correct" to add the PDFs to the repository since it's a derived file; furthermore, doing this adds significantly to the size of the commits and the size of the repository overall.

Is it possible to programmatically send files to the GitHub download page? (I know that tagged commits are automatically added there with git push --tags but I don't know where this is documented. I suppose I could do something fancy by adding a separate branch only containing the PDFs themselves — as done by the GitHub user pages — but I'm a bit rusty on using Git this way.)

+2  A: 

check out for net-github-upload which is available

for perl: http://github.com/typester/net-github-upload-perl and ruby: http://github.com/Constellation/ruby-net-github-upload

With that you can write a small script to upload and update your PDF easily. To sad there's no easy way provided by github guys themselves..

cheer!

RngTng