Often there is the question to get the download URL for an asset (e.g. a setup-file) of the latest release of a project. In my case I provide an executable, which includes the version number in its name, like this:
project-X.Y.Z-setup.exe
together with the source as ZIP- and Tarball-archive. Now to get the download URLs of the assets and source archives using the GitHub API one can get and process this URL (replacing USER
and PROJECT
with the GitHub user account and projectname accordingly):