@@ -116,11 +116,17 @@ jobs:
116
116
117
117
steps :
118
118
- uses : actions/checkout@v3
119
- - uses : actions/setup-python@v4
119
+ - uses : actions/setup-node@v3
120
120
with :
121
- python-version : 3.x
122
- - run : pip install -r docs/pip_requirements.txt
123
- - run : mkdocs build --strict
121
+ node-version : 18
122
+ cache : yarn
123
+
124
+ - name : Install dependencies
125
+ run : yarn install --frozen-lockfile
126
+ working-directory : docs
127
+
128
+ - name : Test build docs
129
+ run : yarn build
124
130
working-directory : docs
125
131
publish_next :
126
132
if : github.repository_owner == 'pnp'
@@ -171,12 +177,28 @@ jobs:
171
177
172
178
steps :
173
179
- uses : actions/checkout@v3
174
- - uses : actions/setup-python@v4
180
+ - uses : actions/setup-node@v3
175
181
with :
176
- python-version : 3.x
177
- - run : pip install -r docs/pip_requirements.txt
178
- - run : mkdocs gh-deploy --force -m "[ci skip]"
182
+ node-version : 18
183
+ cache : yarn
184
+
185
+ - name : Install dependencies
186
+ run : yarn install --frozen-lockfile
179
187
working-directory : docs
188
+
189
+ - name : Test build docs
190
+ run : yarn build
191
+ working-directory : docs
192
+
193
+ - name : Deploy to GitHub Pages
194
+ uses : peaceiris/actions-gh-pages@v3
195
+ working-directory : docs
196
+ with :
197
+ github_token : ${{ secrets.GITHUB_TOKEN }}
198
+ publish_dir : ./build
199
+ user_name : github-actions[bot]
200
+ user_email : 41898282+github-actions[bot]@users.noreply.github.com
201
+
180
202
deploy_docker :
181
203
if : github.repository_owner == 'pnp'
182
204
needs : publish_next
0 commit comments