From b3905478d995fa22f6fabcc19f525172fd03cca9 Mon Sep 17 00:00:00 2001 From: Anatole-DC Date: Thu, 13 Jan 2022 18:59:41 +0100 Subject: [PATCH] :construction_worker: Add documentation build Add documentation build step for backend ci --- .circleci/config.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index c821215..d94a386 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -71,6 +71,24 @@ jobs: exit 1 fi + server-doc-build: + <<: *shared-config + steps: + - checkout + - restore_cache: + key: dependencies-{{ checksum "package.json" }}-v1 + - run: yarn doc:build + - run: + name: Copy deployment artifacts to workspace + command: | + cp docs/ /tmp/server-doc -r + - store_artifacts: + path: /tmp/server-doc + - persist_to_workspace: + root: /tmp + paths: + - server-doc + workflows: version: 2 build-test-and-lint: @@ -91,6 +109,15 @@ workflows: - lint - back-test-unit - back-test-e2e + filters: + branches: + only: main + - server-doc-build: + requires: + - build + - lint + - back-test-e2e + - back-test-unit filters: branches: only: main \ No newline at end of file