Skip to content

Commit 2250e5b

Browse files
Fix docs deployment from tag triggers
Always checkout master branch in the docs workflow, even when triggered by a tag push. This ensures GitHub Pages accepts the deployment since it's configured with source.branch: master. sphinx-multiversion still builds all versions (tags + master) because fetch-depth: 0 fetches all refs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 92054a1 commit 2250e5b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@v4
2626
with:
27-
fetch-depth: 0 # Fetch all history for version detection
27+
ref: master # Always checkout master for GitHub Pages deployment
28+
fetch-depth: 0 # Fetch all history for sphinx-multiversion
2829
- name: Setup Pages
2930
uses: actions/configure-pages@v5
3031
- uses: astral-sh/setup-uv@v5

0 commit comments

Comments
 (0)