@@ -167,7 +167,7 @@ jobs:
167167 path : dist
168168 integration :
169169 << : *defaults
170- parallelism : 1
170+ parallelism : 2
171171 environment :
172172 JEST_JUNIT_OUTPUT_NAME : results.txt
173173 steps :
@@ -201,6 +201,19 @@ jobs:
201201 - run : npm run deploy -- -x -r https://${GH_TOKEN}@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
202202 - run : npm run deploy:smalruby.app -- -x -r https://${GH_TOKEN}@github.com/$CIRCLE_PROJECT_USERNAME/smalruby.app.git
203203
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+
204217workflows :
205218 version : 2
206219 commitlint :
@@ -236,7 +249,6 @@ workflows:
236249 only :
237250 - master
238251 - develop
239- - beta
240252 - /^hotfix\/.*/
241253 - lint :
242254 context :
@@ -268,7 +280,6 @@ workflows:
268280 only :
269281 - master
270282 - develop
271- - beta
272283 - /^hotfix\/.*/
273284 - store_dist :
274285 context :
@@ -280,7 +291,6 @@ workflows:
280291 only :
281292 - master
282293 - develop
283- - beta
284294 - /^hotfix\/.*/
285295 - deploy-gh-pages :
286296 context :
@@ -290,6 +300,53 @@ workflows:
290300 - unit
291301 - integration
292302 - 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
293350 filters :
294351 branches :
295352 ignore :
0 commit comments