Can I make releases public from a private github repo?

eggbert picture eggbert · Oct 6, 2014 · Viewed 11.8k times · Source

I have an application which is in a private github repo, and am wondering if the releases could be made public so that the app can auto-update itself from github instead of us having to host it.

Additionally I'm wondering if it's possible to use the github api from the deployed app to check for new updates.

Answer

VonC picture VonC · Oct 6, 2014

A workaround would be to create a public repo, composed of:

  • empty commits (git commit --allow-empty)
  • each commit tagged
  • each tag with a release
  • each release with the deliveries (the binaries of your private app)

That way, you have a visible repo dedicated for release hosting, and a private repos for source development.