Commit 93aa461
committed
Fix GitHub Pages deployment failing on release tags
The github-pages environment protection rules only allow deployment
from the main branch. When a release is published, the workflow runs
in the tag ref context (e.g. refs/tags/v0.2.0), which the environment
rejects.
Fix by:
- Adding push trigger on main so deploys run in a branch context
- Pinning checkout to ref: main so release-triggered builds also
use the branch (not the detached tag)
https://claude.ai/code/session_01MVwVedn97waTs89PBTnhzb1 parent 21045f0 commit 93aa461
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
0 commit comments