docs.yml 988 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Documentation
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. jobs:
  10. # Runs on pull requests too, so a broken build is caught before it merges.
  11. build:
  12. name: Deploy docs
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Checkout main
  16. uses: actions/checkout@v7
  17. - name: Install uv
  18. uses: astral-sh/setup-uv@v10.0.1
  19. with:
  20. enable-cache: true
  21. - name: Build docs
  22. run: uv run zensical build --clean
  23. # Zensical has no plugin API yet, so llms.txt and llms-full.txt are
  24. # generated from the built site here.
  25. - name: Generate llms.txt
  26. run: uv run python scripts/gen_llms.py site
  27. - name: Deploy to GitHub Pages
  28. if: github.event_name == 'push' && github.ref == 'refs/heads/main'
  29. uses: peaceiris/actions-gh-pages@v4
  30. with:
  31. github_token: ${{ secrets.GITHUB_TOKEN }}
  32. publish_dir: ./site
  33. cname: awesomedjango.org