You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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"
0 commit comments