Search code examples
githubtagsrelease

Download latest GitHub release


I want to add the Download Latest Version button to my project website which would represent the link to the latest release stored at GitHub Releases.

I've tried to create a release tag named latest, but it became complicated when I tried to load a new release (confusion with tag creation date, tag interchanging, etc.). Updating download links on my website manually is also a time-consuming and tedious task.

Note that my website is hosted statically, so I simply can't use server-side scripting to generate links. Any ideas?


Solution

  • Github now provides a "Latest release" button on the release page of a project, after you have created your first release.

    In the example you gave, this button links to https://github.com/reactiveui/ReactiveUI/releases/latest