@@ -167,7 +167,7 @@ jobs:
167
167
path : dist
168
168
integration :
169
169
<< : *defaults
170
- parallelism : 1
170
+ parallelism : 2
171
171
environment :
172
172
JEST_JUNIT_OUTPUT_NAME : results.txt
173
173
steps :
@@ -201,6 +201,19 @@ jobs:
201
201
- run : npm run deploy -- -x -r https://${GH_TOKEN}@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
202
202
- run : npm run deploy:smalruby.app -- -x -r https://${GH_TOKEN}@github.com/$CIRCLE_PROJECT_USERNAME/smalruby.app.git
203
203
204
+ deploy-gh-pages-branch :
205
+ << : *defaults
206
+ steps :
207
+ - *restore_git_cache
208
+ - checkout
209
+ - *restore_npm_cache
210
+ - *restore_build_cache
211
+ - run : |
212
+ git config --global user.email $(git log --pretty=format:"%ae" -n1)
213
+ git config --global user.name $(git log --pretty=format:"%an" -n1)
214
+ - run : npm run deploy -- -x -r https://${GH_TOKEN}@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git -e $CIRCLE_BRANCH
215
+ - run : npm run deploy:smalruby.app -- -x -r https://${GH_TOKEN}@github.com/$CIRCLE_PROJECT_USERNAME/smalruby.app.git -e $CIRCLE_BRANCH
216
+
204
217
workflows :
205
218
version : 2
206
219
commitlint :
@@ -236,7 +249,6 @@ workflows:
236
249
only :
237
250
- master
238
251
- develop
239
- - beta
240
252
- /^hotfix\/.*/
241
253
- lint :
242
254
context :
@@ -268,7 +280,6 @@ workflows:
268
280
only :
269
281
- master
270
282
- develop
271
- - beta
272
283
- /^hotfix\/.*/
273
284
- store_dist :
274
285
context :
@@ -280,7 +291,6 @@ workflows:
280
291
only :
281
292
- master
282
293
- develop
283
- - beta
284
294
- /^hotfix\/.*/
285
295
- deploy-gh-pages :
286
296
context :
@@ -290,6 +300,53 @@ workflows:
290
300
- unit
291
301
- integration
292
302
- build
303
+ filters :
304
+ branches :
305
+ ignore :
306
+ - beta
307
+ - /^dependabot/.*/
308
+ - /^renovate/.*/
309
+ - /^pull/.*/ # don't deploy to gh pages on PRs.
310
+ build-deploy-beta :
311
+ jobs :
312
+ - setup :
313
+ context :
314
+ - dockerhub-credentials
315
+ filters :
316
+ branches :
317
+ only :
318
+ - beta
319
+ - /^v[0-9]+\.[0-9]+\.[0-9]+$/
320
+ - build :
321
+ context :
322
+ - dockerhub-credentials
323
+ requires :
324
+ - setup
325
+ - store_build :
326
+ context :
327
+ - dockerhub-credentials
328
+ requires :
329
+ - build
330
+ filters :
331
+ branches :
332
+ only :
333
+ - beta
334
+ - /^v[0-9]+\.[0-9]+\.[0-9]+$/
335
+ - store_dist :
336
+ context :
337
+ - dockerhub-credentials
338
+ requires :
339
+ - build
340
+ filters :
341
+ branches :
342
+ only :
343
+ - beta
344
+ - /^v[0-9]+\.[0-9]+\.[0-9]+$/
345
+ - deploy-gh-pages-branch :
346
+ context :
347
+ - dockerhub-credentials
348
+ requires :
349
+ - build
293
350
filters :
294
351
branches :
295
352
ignore :
0 commit comments