Search code examples
gitgithubcompiled

GitHub: can I offer access to compiled files without versioning them?


I maintain a documentation with git and GitHub. The source files are TEX files for Pdflatex an a few other files (like figures) that are used for the compilation. These files are versioned. After compilation, they produce a PDF file (that explains all the details of my project).

There is no need to version that resulting PDF file, because it is constructed from source. Versioning that compiled PDF would be a waist of resource.

However, I would like that people who check out my GitHub repository can read the last compiled PDF immediately, so that they don't need to compile themselves. Such possibility would be appreciated by people who just want to have a quick look, wouldn't it?

How can this be done with GitHub?


Solution

  • You have a download page available at http://github.com/user/project/downloads. You can handle this automatically with their API if needed.

    Edit: As noted by Thomas, the download API has been deprecated since, and has been replaced by another workflow called "Releases". You can then attach binary files to a specific release.

    Drag and drop binary