File: docs_publish.yml

package info (click to toggle)
pkb-client 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 356 kB
  • sloc: python: 3,067; makefile: 83
file content (30 lines) | stat: -rw-r--r-- 622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: build and publish docs

on:
  push:
    tags:
      - "v*"

jobs:
  build:
    name: build and publish docs
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Set up Python 3.14
        uses: actions/setup-python@v6.2.0
        with:
          python-version: 3.14

      - name: Install sphinx
        run: pip install sphinx

      - name: Build docs
        run: cd docs && make html

      - name: Publish docs to GitHub Pages
        uses: peaceiris/actions-gh-pages@v4
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: docs/build/html