WordPress provides a direct URL for latest.tar.gz, which is easy to remember when needed.
Does CP have one or plan to have one? This would be different from /latest Github link.
I think the easiest way to make this work would be to write a PHP script that uses the GitHub API to fetch a list of releases, pick the latest release, and redirect to the current download. Here’s the API endpoint to use: https://api.github.com/repos/ClassicPress/ClassicPress-release/releases
A .zip file would work just as well, or the script could support both.
Please be sure to set appropriate cache control headers in this script, and CloudFlare will cache the results for us as described here. Otherwise, we will quickly exhaust the rate limit for GitHub API calls. An expiration time of around 15 minutes should be sufficient.
I did it a bit differently, re-using existing code that was already on the site, which was much easier than the approach I suggested above.
Note - because that URL just redirects to the latest release zip on GitHub, you’ll get a file named ClassicPress-release-1.1.2.zip if you click it in a browser. When unzipped, it contains a single folder named ClassicPress-release-1.1.2 and that version number will change with each new version. This is easy enough to script for, and WP-CLI can handle it too.
I also wrote a change for WP-CLI that lets you install a zip file directly from a URL, so as long as you’re using WP-CLI 2.4.0 or higher (currently the latest release), wp core download https://www.classicpress.net/latest.zip will work as expected.
Is the .zip URL enough for your needs or should we go ahead and add the .tar.gz URL too?