Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github download folder as zip

How can I provide visitors of my Github repositories a link to download the builds folder of my repository as zip file? The folder contains a executable, shaders and textures needed by the application.

Of course I could manually build a zip file of that directory and add that to the repository. But that results in redundant files, bigger size and unnecessary work for each commit.

So is there a way to zip and download a specific folder and its content of a git repository on Github? Maybe Github has the ability already?

like image 478
danijar Avatar asked Jan 12 '13 13:01

danijar


2 Answers

Update July 2013:

As I mention in "Releasing a build artifact on github", you can define a release and upload binaries attached to that release!

GitHub release


Original answer (January 2013)

No, you cannot do it with GitHub alone.

And GitHub recently got rid of its upload feature, which would have allowed you to uplad a binary for your user to get (without making your git repo grow in size).

So you need to store said binary in another external (binary) repository (Nexus, or Amazon s3 service, or...)

like image 78
VonC Avatar answered Sep 25 '22 00:09

VonC


Provided you rely on a public Continuous Integration server, you may also promote the result of your build as downloadable artifacts.

For instance, JetBrains TeamCity provides such feature and Codebetter.com generously provides a free TeamCity server for .Net/Mono open source projects.

Imgur

like image 29
nulltoken Avatar answered Sep 24 '22 00:09

nulltoken