There was an error while loading. Please reload this page.
1 parent 03ffa6f commit 5ad96aaCopy full SHA for 5ad96aa
1 file changed
.github/workflows/docs.yml
@@ -0,0 +1,41 @@
1
+name: Build and Deploy Documentation
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+permissions:
9
+ contents: write
10
11
+jobs:
12
+ build-and-deploy:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v4
18
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: '3.10'
23
24
+ - name: Install dependencies
25
+ run: |
26
+ python -m pip install --upgrade pip
27
+ pip install sphinx sphinx-rtd-theme
28
+ pip install -e .
29
30
+ - name: Build documentation
31
32
+ chmod +x build.sh
33
+ ./build.sh
34
35
+ - name: Deploy to GitHub Pages
36
+ uses: peaceiris/actions-gh-pages@v4
37
38
+ github_token: ${{ secrets.GITHUB_TOKEN }}
39
+ publish_dir: ./docs
40
+ publish_branch: gh-pages
41
+ force_orphan: true
0 commit comments