Commit c451ca9
committed
fix: resolve docs deployment failures due to environment protection rules
The docs workflow was failing when triggered by release events because GitHub Pages
environment protection rules block deployments from tags. This fix ensures docs are
always built from the main branch while maintaining correct version information.
Changes:
- Remove direct release event trigger to prevent duplicate workflow runs
- Always checkout main branch to satisfy environment protection rules
- Enhance version detection to use release tag when available
- Rely on repository_dispatch from release workflow for docs deployment
The release workflow already triggers docs via repository_dispatch, making the
direct release trigger redundant and problematic. This change creates a single,
reliable docs deployment path that works with GitHub Pages protection rules.
Resolves deployment failures: "Tag 'v1.0.1' is not allowed to deploy to github-pages"1 parent 4238522 commit c451ca9
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
| |||
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| |||
0 commit comments