Commit b3492cfc authored by Claudio W's avatar Claudio W 📖
Browse files

refactor(ci): do not run jobs when not needed

parent dc028ff7
......@@ -43,8 +43,6 @@ install:node:
when: always
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
- if: '$CI_COMMIT_BRANCH != "main"'
when: manual
install:jekyll:
stage: install
......@@ -61,8 +59,6 @@ install:jekyll:
when: always
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: always
- if: '$CI_COMMIT_BRANCH != "main"'
when: manual
build:library:
stage: build:library
......@@ -77,6 +73,14 @@ build:library:
- assets
expire_in: 1 day
rules:
- changes:
- src/
- package-lock.json
- package.json
- tailwind.config.js
- postcss.config.js
- gulpfile.js
when: always
build:docs:
stage: build:docs
......@@ -96,6 +100,16 @@ build:docs:
- documentation/build
expire_in: 1 day
rules:
- changes:
- documentation/
- README.md
- src/
- package-lock.json
- package.json
- tailwind.config.js
- postcss.config.js
- gulpfile.js
when: always
pages:
stage: deploy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment