File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & Deploy Documentation
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ workflow_dispatch :
6
+
7
+ permissions :
8
+ contents : read
9
+ pages : write
10
+ id-token : write
11
+
12
+ concurrency :
13
+ group : " pages"
14
+ cancel-in-progress : true
15
+
16
+ jobs :
17
+ deploy :
18
+ environment :
19
+ name : main
20
+ url : ${{ steps.deployment.outputs.page_url }}
21
+ name : Build Documentation
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Checkout repository
25
+ uses : actions/checkout@v3
26
+ - name : Run Sphinx documentation build
27
+ uses :
ammaraskar/[email protected]
28
+ with :
29
+ docs-folder : " docs/"
30
+ - name : Upload documentation artifact
31
+ uses : actions/upload-artifact@v3
32
+ with :
33
+ name : documentation
34
+ path : _build/html/
35
+ - name : Deploy to GitHub Pages
36
+ id : deployment
37
+ uses : actions/deploy-pages@v1
Original file line number Diff line number Diff line change
1
+ name : Build & Deploy Documentation
2
+ on :
3
+ pull_request :
4
+
5
+ jobs :
6
+ build :
7
+ name : Build Documentation
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout repository
11
+ uses : actions/checkout@v3
12
+ - name : Run Sphinx documentation build
13
+ uses :
ammaraskar/[email protected]
14
+ with :
15
+ docs-folder : " docs/"
16
+ - name : Upload documentation artifact
17
+ uses : actions/upload-artifact@v3
18
+ with :
19
+ name : documentation
20
+ path : _build/html/
You can’t perform that action at this time.
0 commit comments