Skip to content

Commit bf74a86

Browse files
committed
Add GitHub Actions workflow for deploying docs
1 parent 32991e8 commit bf74a86

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- readthedocs
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python 3.13
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.13"
17+
- name: Install dependencies
18+
run: pip install sphinx
19+
- name: Build documentation
20+
run: cd docs && sphinx-build -b html . _build
21+
- name: Deploy to GitHub Pages
22+
uses: peaceiris/actions-gh-pages@v3
23+
with:
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
publish_dir: docs/_build

0 commit comments

Comments
 (0)