Skip to content

Commit 84892e8

Browse files
waspperdavidferlay
authored andcommitted
Merge pull request #254 from davidferlay/storybookmove
Moving storybook to deploy ci step and adding theme check
2 parents 740168b + 71f40e0 commit 84892e8

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.gitlab-ci.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ stages:
3535
- deploy
3636
- tests
3737
- reports
38-
- document
3938

4039
sniffers:clang:
4140
stage: sniffers
@@ -225,6 +224,24 @@ stop_review:
225224
<<: *ra_tags
226225
<<: *ra_only
227226

227+
deploy:storybook:
228+
stage: deploy
229+
environment:
230+
url: https://${CI_ENVIRONMENT_SLUG}-${CI_PROJECT_PATH_SLUG}.${REVIEW_DOMAIN}
231+
name: review/$CI_COMMIT_REF_NAME
232+
on_stop: stop_review
233+
only:
234+
variables:
235+
- $STORYBOOK_PATH
236+
script:
237+
- cd ${BUILD_DIR}
238+
- make build-storybook
239+
- echo "- Storybook is accessible here :" && echo "${CI_ENVIRONMENT_URL}/${STORYBOOK_PATH}"
240+
<<: *ra_tags
241+
<<: *ra_only
242+
<<: *ra_only_theme
243+
when: always
244+
228245

229246
test:behat:
230247
stage: tests
@@ -328,21 +345,3 @@ report:watchdog:
328345
<<: *ra_tags
329346
<<: *ra_only
330347

331-
document:storybook:
332-
stage: document
333-
environment:
334-
url: https://${CI_ENVIRONMENT_SLUG}-${CI_PROJECT_PATH_SLUG}.${REVIEW_DOMAIN}
335-
name: review/$CI_COMMIT_REF_NAME
336-
on_stop: stop_review
337-
only:
338-
variables:
339-
- $STORYBOOK_PATH
340-
script:
341-
- cd ${BUILD_DIR}
342-
- make build-storybook
343-
- echo "- Storybook is accessible here :" && echo "${CI_ENVIRONMENT_URL}/${STORYBOOK_PATH}"
344-
dependencies:
345-
- deploy:review
346-
<<: *ra_tags
347-
<<: *ra_only
348-
when: always

0 commit comments

Comments
 (0)