Skip to content

Commit f4ecdcc

Browse files
committed
Try building docs & deploying
1 parent 55a2961 commit f4ecdcc

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/static.yml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,44 @@ jobs:
2929
url: ${{ steps.deployment.outputs.page_url }}
3030
runs-on: ubuntu-latest
3131
steps:
32+
3233
- name: Checkout
3334
uses: actions/checkout@v3
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v2
38+
with:
39+
python-version: 3.9
40+
41+
- name: Install package
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install .[dev]
45+
46+
- name: List packages so far
47+
run: |
48+
pip list
49+
50+
- name: Build Documentation
51+
run: |
52+
53+
pip install .[docs]
54+
cd docs
55+
python generate.py
56+
python contributors.py
57+
cd sphinx
58+
make clean
59+
make html
60+
3461
- name: Setup Pages
3562
uses: actions/configure-pages@v3
63+
3664
- name: Upload artifact
3765
uses: actions/upload-pages-artifact@v2
3866
with:
39-
# Upload entire repository
40-
path: '.'
67+
# Upload just docs
68+
path: 'docs/sphinx/build/html'
69+
4170
- name: Deploy to GitHub Pages
4271
id: deployment
4372
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)