File tree 3 files changed +47
-23
lines changed
3 files changed +47
-23
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,19 @@ jobs:
112
112
name : coverage-${{ matrix.os }}-${{ matrix.nodeRun }}
113
113
path : coverage.tar
114
114
test_docs :
115
- if : github.repository_owner == 'pnp' && github.event.pull_request.base.ref != 'docs-migration'
115
+ if : github.repository_owner == 'pnp'
116
116
runs-on : ubuntu-latest
117
117
118
118
steps :
119
119
- uses : actions/checkout@v3
120
- - uses : actions/setup-python@v4
120
+ - uses : actions/setup-node@v3
121
121
with :
122
- python-version : 3.x
123
- - run : pip install -r docs/pip_requirements.txt
124
- - run : mkdocs build --strict
122
+ node-version : 18
123
+
124
+ - name : Install dependencies
125
+ run : npm ci
126
+ working-directory : docs
127
+
128
+ - name : Build docs
129
+ run : npm run build
125
130
working-directory : docs
Original file line number Diff line number Diff line change @@ -82,11 +82,16 @@ jobs:
82
82
83
83
steps :
84
84
- uses : actions/checkout@v3
85
- - uses : actions/setup-python@v4
85
+ - uses : actions/setup-node@v3
86
86
with :
87
- python-version : 3.x
88
- - run : pip install -r docs/pip_requirements.txt
89
- - run : mkdocs build --strict
87
+ node-version : 18
88
+
89
+ - name : Install dependencies
90
+ run : npm ci
91
+ working-directory : docs
92
+
93
+ - name : Build docs
94
+ run : npm run build
90
95
working-directory : docs
91
96
publish :
92
97
if : github.repository_owner == 'pnp'
Original file line number Diff line number Diff line change @@ -113,18 +113,28 @@ jobs:
113
113
with :
114
114
name : coverage-${{ matrix.os }}-${{ matrix.nodeRun }}
115
115
path : coverage.tar
116
- test_docs :
116
+ build_docs :
117
117
if : github.repository_owner == 'pnp'
118
118
runs-on : ubuntu-latest
119
119
120
120
steps :
121
121
- uses : actions/checkout@v3
122
- - uses : actions/setup-python@v4
122
+ - uses : actions/setup-node@v3
123
123
with :
124
- python-version : 3.x
125
- - run : pip install -r docs/pip_requirements.txt
126
- - run : mkdocs build --strict
124
+ node-version : 18
125
+
126
+ - name : Install dependencies
127
+ run : npm ci
128
+ working-directory : docs
129
+
130
+ - name : Build docs
131
+ run : npm run build
127
132
working-directory : docs
133
+
134
+ - name : Upload artifact
135
+ uses : actions/upload-pages-artifact@v1
136
+ with :
137
+ path : docs/build
128
138
publish_next :
129
139
if : github.repository_owner == 'pnp'
130
140
needs : [test, test_docs]
@@ -169,17 +179,21 @@ jobs:
169
179
path : build.tar
170
180
deploy_docs :
171
181
if : github.repository_owner == 'pnp'
172
- needs : publish_next
173
- runs-on : ubuntu-latest
182
+ needs : build_docs
174
183
184
+ permissions :
185
+ pages : write
186
+ id-token : write
187
+
188
+ environment :
189
+ name : github-pages
190
+ url : ${{ steps.deployment.outputs.page_url }}
191
+
192
+ runs-on : ubuntu-latest
175
193
steps :
176
- - uses : actions/checkout@v3
177
- - uses : actions/setup-python@v4
178
- with :
179
- python-version : 3.x
180
- - run : pip install -r docs/pip_requirements.txt
181
- - run : mkdocs gh-deploy --force -m "[ci skip]"
182
- working-directory : docs
194
+ - name : Deploy to GitHub Pages
195
+ id : deployment
196
+ uses : actions/deploy-pages@v2
183
197
deploy_docker :
184
198
if : github.repository_owner == 'pnp'
185
199
needs : publish_next
You can’t perform that action at this time.
0 commit comments