From 5c47f439be95c03470eb5a564f8e2e791ba8d0fd Mon Sep 17 00:00:00 2001 From: Oleg Pimenov Date: Fri, 21 Jun 2019 00:02:00 +0300 Subject: [PATCH] fix: ci PR NUmbers --- .circleci/config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5497ddac2..6cffae0ea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -65,9 +65,16 @@ jobs: <<: *job_defaults steps: - attach_workspace: *attach_options + - run: + name: Setup Environment Variables + command: | + echo 'export CI_PREVIEW=true' >> $BASH_ENV + echo 'export SHORT_GIT_HASH=$(git rev-parse --short $CIRCLE_SHA1)' >> $BASH_ENV + echo 'export CIRCLE_PULL_REQUEST_NUMBER=$(echo "$CIRCLE_PULL_REQUEST" | cut -d"/" -f7)' >> $BASH_ENV + source $BASH_ENV - run: yarn run build:docs - run: yarn run build:mosaic-examples - - run: yarn run docs:prod-build + - run: yarn run docs:prod-build --progress false --base-href /pr$CIRCLE_PULL_REQUEST_NUMBER-$SHORT_GIT_HASH/ --output-path dist/releases/mosaic-docs/pr$CIRCLE_PULL_REQUEST_NUMBER-$SHORT_GIT_HASH/ - persist_to_workspace: root: dist paths: