-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 953 Bytes
/
docs.yml
File metadata and controls
38 lines (35 loc) · 953 Bytes
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
31
32
33
34
35
36
37
38
name: docs
run-name: ${{ github.workflow }} (${{ github.ref_name }})
on:
workflow_dispatch:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
# runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0 # fetch all commits
fetch-tags: true
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install .[docs,optional]
- name: sphinx-apidoc
run: |
sphinx-apidoc -f -o ./docs_src ./src/kennard_stone --module-first
- name: Sphinx build
run: |
sphinx-build -b html ./docs_src ./docs
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
force_orphan: true