Commit 12d01a67 authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

chore (CI/CD): generate docs after build

parent 2401f310
Pipeline #12831 passed with stages
in 3 minutes and 49 seconds
......@@ -6,6 +6,7 @@ variables:
stages:
- test
- build
- docs
before_script:
- yarn install --frozen-lockfile --cache-folder .yarn
......@@ -34,27 +35,29 @@ test:
paths:
- coverage/
pages:
stage: test
build:
stage: build
image: node:alpine
tags: [docker]
script:
- yarn docs
- mkdir public
- cp -r docs/* public/
- yarn packagr
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
paths:
- public
- dist-lib/
only:
- master
build:
stage: build
pages:
stage: docs
image: node:alpine
tags: [docker]
script:
- yarn packagr
- yarn docs
- mkdir public
- cp -r docs/* public/
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
paths:
- dist-lib/
- public
only:
- master
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