Link to download latest version tag of a repository from GitHub

1k Views Asked by At

I want to make download link for latest version of my application from GitHub tags. But I can not use GitHub releases, only just tags to make the new version. So I want an universal link to the latest tag zipball. I already did that with jQuery and GitHub API, but I also need a non JS fallback. Is there any option how to do it?

Edit: I've found some possibilities, but none of them is accurate for my problem:

Edit 2: Is there also any option to download latest release directly? It could help to find out the same for tag.

1

There are 1 best solutions below

3
On BEST ANSWER

I couldn't find out a way to easily do want you want, however I ended up making sure there is a tag for latest so then you link such as

https://api.github.com/repos/:user/:repo/zipball/latest

It sounds like you have control of tags so that should do the trick for now for the static link fallback.