File tree Expand file tree Collapse file tree 2 files changed +43
-5
lines changed Expand file tree Collapse file tree 2 files changed +43
-5
lines changed Original file line number Diff line number Diff line change @@ -99,17 +99,16 @@ jobs:
99
99
docs :
100
100
runs-on : ubuntu-latest
101
101
steps :
102
- - name : Checkout repository
102
+ - name : Checkout
103
103
uses : actions/checkout@v3.5.3
104
104
105
- - name : Install dependencies
105
+ - name : Install requirements
106
106
run : pip3 install -r docs/requirements.txt
107
107
108
- - name : Build documentation
108
+ - name : Build with Sphinx
109
109
run : sphinx-build -b html docs build/docs -W --keep-going
110
110
111
- - name : Upload documentation as artifact
111
+ - name : Upload artifact
112
112
uses : actions/upload-artifact@v3.1.2
113
113
with :
114
- name : docs
115
114
path : build/docs
Original file line number Diff line number Diff line change
1
+ name : deploy
2
+ on :
3
+ workflow_dispatch :
4
+ push :
5
+ branches : [main]
6
+ permissions :
7
+ contents : read
8
+ pages : write
9
+ id-token : write
10
+ concurrency :
11
+ group : pages
12
+ cancel-in-progress : false
13
+ jobs :
14
+ docs :
15
+ runs-on : ubuntu-latest
16
+ environment :
17
+ name : github-pages
18
+ url : ${{ steps.deployment.outputs.page_url }}
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v3.5.3
22
+
23
+ - name : Install requirements
24
+ run : pip3 install -r docs/requirements.txt
25
+
26
+ - name : Setup Pages
27
+ uses : actions/configure-pages@v3.0.6
28
+
29
+ - name : Build with Sphinx
30
+ run : sphinx-build -b html docs docs/build -W --keep-going
31
+
32
+ - name : Upload artifact
33
+ uses : actions/upload-pages-artifact@v1.0.8
34
+ with :
35
+ path : docs/build
36
+
37
+ - name : Deploy to GitHub Pages
38
+ id : deployment
39
+ uses : actions/deploy-pages@v2.0.2
You can’t perform that action at this time.
0 commit comments