Skip to content

Commit 492dbbd

Browse files
authored
Create main.yml
1 parent 7fb33b9 commit 492dbbd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or whichever branch you use as your primary branch
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: '3.12'
18+
19+
- name: Install Sphinx and dependencies
20+
run: |
21+
pip install sphinx sphinx-autodoc-typehints sphinx_rtd_theme
22+
pip install -r requirements.txt
23+
24+
- name: Build Documentation
25+
working-directory: docs
26+
run: |
27+
make html
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: docs/build/html

0 commit comments

Comments
 (0)