Commit 48980d7 1 parent ed381c8 commit 48980d7 Copy full SHA for 48980d7
File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy Sphinx Documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ build-and-deploy :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout Repository
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : 3.11 # You can specify another version if needed.
19
+
20
+ - name : Install Dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install -r requirements/docs.txt
24
+
25
+ - name : Build Sphinx Documentation
26
+ run : |
27
+ cd docsrc
28
+ make html
29
+
30
+ - name : Deploy to GitHub Pages
31
+ uses : peaceiris/actions-gh-pages@v3
32
+ with :
33
+ github_token : ${{ secrets.GITHUB_TOKEN }}
34
+ publish_dir : ./docsrc/_build/html
35
+ publish_branch : gh-pages
You can’t perform that action at this time.
0 commit comments