File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Deploy Sphinx documentation to Pages
4
4
on :
5
5
# Runs on pushes targeting the default branch
6
6
push :
7
- branches : [$default-branch]
7
+ branches : main
8
8
9
9
# Allows you to run this workflow manually from the Actions tab
10
10
workflow_dispatch :
@@ -28,13 +28,21 @@ jobs:
28
28
name : github-pages
29
29
url : ${{ steps.deployment.outputs.page_url }}
30
30
runs-on : ubuntu-latest
31
- container : ghcr.io/sphinx-doc/sphinx
32
31
steps :
33
32
- name : Checkout
34
33
uses : actions/checkout@v4
34
+ - name : Setup Python
35
+ uses : actions/setup-python@v5
36
+ with :
37
+ python-version : ' 3.12'
38
+ check-latest : true
39
+ cache : ' pip'
40
+ cache-dependency-path : ' ./docs/requirements.txt'
41
+ - name : Install dependencies
42
+ run : |
43
+ pip install -r ./docs/requirements.txt
35
44
- name : Build documentation
36
45
run : |
37
- pip install -r requirements.txt
38
46
sphinx-build -M html ./docs/source _build/
39
47
- name : Setup Pages
40
48
uses : actions/configure-pages@v5
You can’t perform that action at this time.
0 commit comments