name: "Documentation" on: push: branches: [ main ] pull_request: ~ workflow_dispatch: # Cancel redundant in-progress jobs. concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: contents: write jobs: documentation: name: "Documentation" runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install uv uses: astral-sh/setup-uv@v7 with: activate-environment: true enable-cache: true python-version: "3.14" - name: Install package and documentation dependencies run: uv pip install '.[docs]' - name: Build static HTML documentation run: sphinx-build -W --keep-going docs/source docs/build - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' && github.event_name == 'push' uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs/build cname: responder.kennethreitz.org