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