Skip to content

Commit 26bd157

Browse files
committed
auto deploy with yaml testing
1 parent 7f393b0 commit 26bd157

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Sphinx Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ feature/dina ]
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.10'
17+
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install sphinx sphinx_rtd_theme
22+
# or: pip install -r docs/requirements.txt
23+
24+
- name: Build docs
25+
working-directory: docs
26+
run: make html
27+
28+
- name: Deploy to gh-pages
29+
uses: peaceiris/actions-gh-pages@v4
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: docs/_build/html

0 commit comments

Comments
 (0)