diff --git a/.circleci/config.yml b/.circleci/config.yml index 21fe41341..5497ddac2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -146,6 +146,13 @@ jobs: - *checkout_code - *restore_cache - *attach_release_output + - 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 docs:publish-preview