Skip to content

Commit c27abcf

Browse files
committed
WIP
1 parent 23a5882 commit c27abcf

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Generate Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- autogenerate-docs
7+
8+
jobs:
9+
generate-docs:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.8'
20+
21+
- name: Install dependencies
22+
run: |
23+
cd docs/build
24+
pip install -r requirements.txt
25+
26+
- name: Generate documentation
27+
run: |
28+
cd docs/build
29+
python build.py
30+
31+
# - name: Configure Git
32+
# run: |
33+
# git config --global user.name 'github-actions'
34+
# git config --global user.email 'github-actions@github.com'
35+
36+
# - name: Commit and push changes
37+
# run: |
38+
# git checkout -b update-docs
39+
# git add ../api-reference
40+
# git commit -m "Update documentation"
41+
# git push -u origin update-docs
42+
43+
# - name: Create Pull Request
44+
# uses: peter-evans/create-pull-request@v6
45+
# with:
46+
# token: ${{ secrets.GITHUB_TOKEN }}
47+
# branch: update-docs
48+
# title: 'Update Documentation'
49+
# body: 'This PR updates the documentation with the latest changes.'
50+
# labels: 'documentation'

0 commit comments

Comments
 (0)