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