I want to distribute a link that always points to the latest version of my program’s manual.
Because it is a PDF, I don’t want to put it in the repository itself, but attach it as a file to the newest release, like so:
Fortunately, GitHub allows to link to the latest release, like so:
However let’s say the manual didn’t change when going from release 0.2 to 0.3, so I didn’t attach it to 0.3.
https://github.com/myaccount/myrepo/releases/latest/download/manual.pdf returns a “not found” error.
Is there any way to let GitHub “fall through” the latest releases from future to past sort order, taking the first one that actually exists?
If yes, how so? If no, what are my alternatives?