File tree 2 files changed +51
-0
lines changed
2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Pages Build
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ jobs :
7
+ pages_build :
8
+ name : Build Pages
9
+ runs-on : " ubuntu-latest"
10
+ steps :
11
+ - name : " Checkout the repository"
12
+ uses : actions/checkout@v4
13
+
14
+ - name : " Set up Python"
15
+ uses : actions/setup-python@v5
16
+ with :
17
+ python-version : " 3.12"
18
+ cache : " pip"
19
+
20
+ - name : " Install requirements"
21
+ run : python3 -m pip install -r requirements-pages.txt
22
+
23
+ - name : " Build pages"
24
+ run : sphinx-build -b html -c ./docs/source/ ./docs/source/ ./docs/latest/
25
+
26
+ - name : " Pull any updates"
27
+ shell : bash
28
+ run : git pull
29
+
30
+ - name : " Check for changes"
31
+ shell : bash
32
+ run : git status
33
+
34
+ - name : " Stage changed files"
35
+ shell : bash
36
+ run : git add ./docs/latest
37
+
38
+ - name : " Commit changed files"
39
+ shell : bash
40
+ run : |
41
+ git config --local user.email "[email protected] "
42
+ git config --local user.name "GitHub Action"
43
+ git commit -m "Update the docs" || true
44
+
45
+ - name : Push changes
46
+ uses : ad-m/github-push-action@master
47
+ with :
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ -r requirements.txt
2
+ sphinx
3
+ sphinx_rtd_theme
You can’t perform that action at this time.
0 commit comments