File tree 2 files changed +38
-2
lines changed
2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,29 @@ jobs:
166
166
- run :
167
167
name : Docs tests
168
168
command : yarn docs-test
169
+ - persist_to_workspace :
170
+ root : packages/opentelemetry-types/docs
171
+ paths :
172
+ - out
173
+ docs-deploy :
174
+ docker :
175
+ - image : node:12
176
+ steps :
177
+ - checkout
178
+ - attach_workspace :
179
+ at : packages/opentelemetry-types/docs
180
+ - run :
181
+ name : Install and configure dependencies
182
+ command : |
183
+ npm install --silent --no-save gh-pages
184
+ git config user.email [email protected]
185
+ git config user.name "ci-build"
186
+ - add_ssh_keys :
187
+ fingerprints :
188
+ - " 1d:a3:60:b5:b4:8d:e7:8a:96:ce:6a:0a:e9:58:4c:54"
189
+ - run :
190
+ name : Deploy docs to gh-pages branch
191
+ command : gh-pages --dist packages/opentelemetry-types/docs/out
169
192
node8 :
170
193
docker :
171
194
- image : node:8
@@ -202,7 +225,18 @@ workflows:
202
225
version : 2
203
226
build :
204
227
jobs :
205
- - lint_&_docs
228
+ - lint_&_docs :
229
+ filters :
230
+ branches :
231
+ only : /.*/
232
+ - docs-deploy :
233
+ requires :
234
+ - lint_&_docs
235
+ filters :
236
+ tags :
237
+ only : /^v\d+\.\d+\.0$/
238
+ branches :
239
+ ignore : /.*/
206
240
- node8
207
241
- node10
208
242
- node12
Original file line number Diff line number Diff line change 21
21
"check" : " lerna run check" ,
22
22
"predocs-test" : " yarn docs" ,
23
23
"docs-test" : " lerna run docs-test" ,
24
- "docs" : " lerna run docs"
24
+ "docs" : " lerna run docs" ,
25
+ "docs-deploy" : " gh-pages --dist packages/opentelemetry-types/docs/out"
25
26
},
26
27
"repository" : " open-telemetry/opentelemetry-js" ,
27
28
"keywords" : [
38
39
"@commitlint/config-conventional" : " ^8.2.0" ,
39
40
"beautify-benchmark" : " ^0.2.4" ,
40
41
"benchmark" : " ^2.1.4" ,
42
+ "gh-pages" : " ^2.1.1" ,
41
43
"gts" : " ^1.1.0" ,
42
44
"husky" : " ^3.0.9" ,
43
45
"lerna" : " ^3.17.0" ,
You can’t perform that action at this time.
0 commit comments