Commit ac36d2b
authored
Allow release tags to deploy the site (#53)
Every release-triggered **Publish site** run has failed since the
manifests were added —
0.9.3-dev.3238, 0.9.3-dev.3241, 0.9.3, 0.9.4-dev.3243, and 0.9.4 — each
in two to four
seconds:
```
Tag "v0.9.4" is not allowed to deploy to github-pages due to environment protection rules.
```
A release event runs on the tag, and the `github-pages` environment
allowed only `main`.
## Why it went unnoticed
Pushes to `main` kept deploying normally, so the workflow looked
healthy. What silently
stopped was the part that only a release triggers: regenerating
`stable.json` and
`dev.json`. The manifest served from `whiteboard.sqlbi.com` stayed on
0.9.2 while 0.9.3 and
0.9.4 shipped.
That is not cosmetic. The download page reads `stable.json` first and
only falls back to the
API on a 404, and the in-app update check reads the same file — so every
0.9.2 user was
being told they were current, two releases late.
## The fix
The environment now carries a tag rule for `v*` alongside the branch
rule for `main`,
applied to the repository settings. A manual deploy has already been
run, so the live
manifest reports 0.9.4.
This change records the requirement, because it is invisible from the
repository — the same
class of dependency as the Pages source setting it now sits beside, and
worth writing down
in both places a reader might look.1 parent 2d32c94 commit ac36d2b
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
7 | 15 | | |
8 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
134 | 145 | | |
135 | 146 | | |
136 | 147 | | |
| |||
0 commit comments