Serve releases.json from GitHub Pages to fix publishing race
#2527
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Meson fetches
releases.jsondirectly from the repo, via a redirect fromwrapdb.mesonbuild.com. When a PR lands,releases.jsonis updated immediately but the GitHub release (with the wrap file, source mirror, and patch zip) is updated after a delay, which can be lengthy if CI is heavily loaded or down. During this time,meson wrap installandmeson wrap updatefail on the newly-updated wraps.Maintain a second copy of
releases.jsonthat lags the one in Git, updating it only after all the releases it describes have been published. Publish it via GitHub Pages: havecreate_release.pygenerate a static site, then publish that in the release workflow. Because of how GitHub Pages works with custom domains, the new file will be available from https://mesonbuild.com/wrapdb/releases.json. Update thewrapdb.mesonbuild.comnginx config to redirect there instead.While we're here, minify the published
releases.json.cc @tp-m