Skip to content

Commit df587ba

Browse files
authored
Update generate-docs.yml
1 parent 43dc85f commit df587ba

File tree

1 file changed

+21
-37
lines changed

1 file changed

+21
-37
lines changed
Lines changed: 21 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,21 @@
1-
name: Generate Documentation
2-
3-
# Disabled workflow for Generate Documentation
4-
5-
# on:
6-
# push:
7-
# branches:
8-
# - main
9-
10-
# jobs:
11-
# generate-docs:
12-
# runs-on: ubuntu-latest
13-
14-
# steps:
15-
# - name: Checkout code
16-
# uses: actions/checkout@v3
17-
# with:
18-
# fetch-depth: 0
19-
20-
# - name: Debug root directory
21-
# run: ls -R
22-
23-
# - name: Debug docs directory
24-
# run: ls docs || echo "docs/ directory not found"
25-
26-
# - name: Set up Python
27-
# uses: actions/setup-python@v4
28-
# with:
29-
# python-version: 3.10
30-
31-
# - name: Install Sphinx
32-
# run: |
33-
# python -m pip install --upgrade pip
34-
# pip install sphinx sphinx-rtd-theme
35-
36-
# - name: Build Documentation
37-
# run: sphinx-build -b html docs/ build/
1+
name: Generate Docs
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
schedule:
7+
- cron: '0 3 * * 1' # every Monday 03:00 UTC
8+
9+
jobs:
10+
docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: |
15+
pip install -r docs/requirements.txt
16+
make -C docs html
17+
- name: Publish to GitHub Pages
18+
uses: peaceiris/actions-gh-pages@v3
19+
with:
20+
publish_dir: docs/_build/html
21+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)