We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2864b25 commit eb6f3a0Copy full SHA for eb6f3a0
.github/workflows/docs.yml
@@ -0,0 +1,33 @@
1
+name: Build and Deploy Sphinx Documentation
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # or your default branch name
7
8
+jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v2
16
+ with:
17
+ python-version: '3.x'
18
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install sphinx sphinx_rtd_theme
23
24
+ - name: Build Documentation
25
26
+ cd docs
27
+ make html
28
29
+ - name: Deploy to GitHub Pages
30
+ uses: peaceiris/actions-gh-pages@v3
31
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir: ./docs/_build/html
0 commit comments