File tree Expand file tree Collapse file tree 4 files changed +649
-1
lines changed
Expand file tree Collapse file tree 4 files changed +649
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Regenerate API Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' src/**'
9+ - ' pyproject.toml'
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : write
14+
15+ jobs :
16+ build-docs :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Check out repository
20+ uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Set up Python
25+ uses : actions/setup-python@v5
26+ with :
27+ python-version : ' 3.12'
28+
29+ - name : Install dependencies
30+ run : |
31+ python -m pip install --upgrade pip
32+ pip install .[dev]
33+
34+ - name : Regenerate Markdown API docs
35+ run : |
36+ mkdir -p docs
37+ pydoc-markdown
38+
39+ - name : Commit updated docs
40+ uses : stefanzweifel/git-auto-commit-action@v5
41+ with :
42+ commit_message : " chore(docs): update generated API docs"
43+ file_pattern : docs/*.md
You can’t perform that action at this time.
0 commit comments