Skip to content

Conversation

@cofin
Copy link
Member

@cofin cofin commented Oct 8, 2025

Summary

Fixes the documentation build failure caused by attempting to checkout a non-existent gh-pages branch.

This PR modernizes the documentation build and deployment workflow to use GitHub's current best practices for GitHub Pages deployment (2025).

The previous workflow tried to checkout a gh-pages branch that doesn't exist, causing this error:

error: pathspec 'gh-pages' did not match any file(s) known to git

References

cofin added 2 commits October 8, 2025 03:31
Fixes the documentation build failure caused by attempting to checkout
a non-existent gh-pages branch.

Changes:
- Simplified tools/build_docs.py to remove gh-pages branch dependency
- Removed version management complexity (redirect logic, version spec)
- Updated .github/workflows/docs.yml to use modern GitHub Pages workflow:
  - Split into separate build and deploy jobs
  - Use actions/upload-pages-artifact@v4 instead of deprecated artifact methods
  - Use actions/deploy-pages@v4 for deployment
  - Added proper permissions (pages: write, id-token: write)
  - Added github-pages environment configuration
- Removed release asset upload workflow

Resolves: https://github.com/litestar-org/sqlspec/actions/runs/18332513028
@cofin cofin changed the title fix: modernize docs build to use GitHub Pages Actions fix: overhaul docs build process Oct 8, 2025
@cofin cofin merged commit b2b18cd into main Oct 8, 2025
11 checks passed
@cofin cofin deleted the fix/docs-build-gh-pages branch October 8, 2025 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants