File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
branches : ['*', '!*@latest']
6
6
push :
7
- branches : ['*@latest', 'main']
7
+ branches : ['*@latest', 'main', 'use-github-page' ]
8
8
jobs :
9
9
debug :
10
10
runs-on : ubuntu-latest
@@ -99,17 +99,25 @@ 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
109
- run : sphinx-build -b html docs build/docs -W --keep-going
108
+ - name : Setup Pages
109
+ if : github.ref == 'refs/heads/use-github-page'
110
+ uses : actions/configure-pages@v3.0.6
111
+
112
+ - name : Build with Sphinx
113
+ run : sphinx-build -b html docs docs/build -W --keep-going
110
114
111
- - name : Upload documentation as artifact
115
+ - name : Upload artifact
112
116
uses : actions/upload-artifact@v3.1.2
113
117
with :
114
- name : docs
115
- path : build/docs
118
+ path : docs/build
119
+
120
+ - name : Deploy to GitHub Pages
121
+ id : deployment
122
+ if : github.ref == 'refs/heads/use-github-page'
123
+ uses : actions/deploy-pages@v2.0.2
You can’t perform that action at this time.
0 commit comments