Skip to content

Commit d69c537

Browse files
committed
Docs test
1 parent f87256e commit d69c537

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: documentation
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
- name: Install dependencies
15+
run: |
16+
python3.8 -m venv .venv
17+
.venv/bin/python -m pip install --upgrade pip
18+
.venv/bin/pip install -e ".[dev]"
19+
- name: Sphinx build
20+
run: |
21+
.venv/bin/sphinx-build -b html docs docs/_build
22+
- name: Deploy to GitHub Pages
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
publish_branch: gh-pages
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: docs/_build/
28+
force_orphan: true

0 commit comments

Comments
 (0)