Commit 1944706
committed
Serve releases.json from GitHub Pages to fix publishing race
Meson fetches releases.json directly from the repo, via a redirect from
wrapdb.mesonbuild.com. When a PR lands, releases.json is 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 install` and
`meson wrap update` fail on the newly-updated wraps.
Maintain a second copy of releases.json that lags the one in Git, updating
it only after all the releases it describes have been published. Publish
it via GitHub Pages: have create_release.py generate 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 the
wrapdb.mesonbuild.com nginx config to redirect there instead.
While we're here, minify the published releases.json.1 parent a3a44ce commit 1944706
File tree
4 files changed
+39
-8
lines changed- .github/workflows
- nginx
- tools
4 files changed
+39
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
32 | 48 | | |
| 49 | + | |
| 50 | + | |
33 | 51 | | |
34 | 52 | | |
35 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
202 | 209 | | |
203 | 210 | | |
204 | 211 | | |
| 212 | + | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
| |||
0 commit comments