Commit abcf9f26 authored by Evan Read's avatar Evan Read 🔴
Browse files

Only run jobs and scripts when necessary

parent 2bd4d76d
......@@ -12,25 +12,30 @@ test:eslint:
stage: test
script:
- npm run test:eslint
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
test:markdownlint:
stage: test
script:
- npm run test:markdownlint
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
test:yamllint:
stage: test
script:
- npm run test:yamllint
rules:
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
pages:
stage: deploy
script:
- npm run build
- npm run generate
artifacts:
paths:
- public
expire_in: 1 day
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Evan Read's README
See the:
This personal README provides some information about me and my development setup. See the:
- Published version at: <https://eread.gitlab.io/eread/>.
- Markdown version at [`content/en`](https://gitlab.com/eread/eread/-/tree/main/content/en).
......@@ -18,7 +18,6 @@ You can clone the project and preview it locally:
- To build and preview in production mode run:
```shell
npm run build
npm run generate
npm run start
```
Supports Markdown
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