Skip to content
Snippets Groups Projects
Commit 9d57b720 authored by Anton Kullberg's avatar Anton Kullberg
Browse files

ci: updated rule for doc building

parent e954d51e
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,7 @@ build-doc: ...@@ -26,8 +26,7 @@ build-doc:
paths: paths:
- .public - .public
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE =~ /^doc:.*/
- if: '$CI_COMMIT_MESSAGE =~ /^doc:.*/'
pages: pages:
stage: deploy stage: deploy
...@@ -37,5 +36,4 @@ pages: ...@@ -37,5 +36,4 @@ pages:
paths: paths:
- public - public
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE =~ /^doc:.*/
- if: '$CI_COMMIT_MESSAGE =~ /^doc:.*/'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment