[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/python-project-templates/.github/main/.github/workflows/docs.yml [Back]  [Original]

name: Docs

on:
  push:
    branches:
      - main
    paths:
      - .github/workflows/docs.yml
      - index.md
      - profile/README.md
      - pyproject.toml
  workflow_dispatch:

concurrency:
  group: docs
  cancel-in-progress: false

permissions:
  contents: write

jobs:
  docs:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1  # v7.0.1
        with:
          persist-credentials: false

      - name: Setup Python
        uses: actions-ext/python/setup@6e1b91a408ea89f49bc8aff8724f83826f7b5446
        with:
          version: "3.11"

      - name: Install Yardang
        run: uv pip install yardang[themes]

      - name: Build Pages
        run: yardang build

      - name: Deploy Pages
        uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453  # v4.1.0
        with:
          force_orphan: true
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_branch: gh-pages
          publish_dir: docs/html

Web Proxy Viewer  |  New URL  |  Original Page