From 9fb06062bc4b4d81784943d8506963e3c60bb317 Mon Sep 17 00:00:00 2001 From: Alexandre SOARES <72209227+AS-37@users.noreply.github.com> Date: Wed, 13 Oct 2021 20:08:05 +0200 Subject: [PATCH] Update config.yml --- .circleci/config.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4bd978f..36d94ac 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,6 +5,10 @@ workflows: - test - lint - end_to_end + - documentation: + requires: + - lint + - end_to_end version: 2.1 jobs: @@ -72,4 +76,22 @@ jobs: name: "yarn test" command: yarn test:e2e environment: - DATABASE_URL: postgres://pguser:pass@localhost:5432/pgdb \ No newline at end of file + DATABASE_URL: postgres://pguser:pass@localhost:5432/pgdb + documentation_artifact: + docker: + - image: cimg/node:16.10.0 + auth: + username: xaela37 + password: $DOCKERHUB_PASSWORD + steps: + - checkout + - restore_cache: + keys: + - npm-v1-dependencies-{{ checksum "yarn.lock" }} + - run: + name: "yarn doc build" + command: | + yarn doc:build + yarn add save-artifact-to-github + - store_artifacts: + path: docs \ No newline at end of file