Skip to content

Commit

Permalink
fix: ci PR NUmbers
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Jun 24, 2019
1 parent 539390d commit 5c47f43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5c47f43

Please sign in to comment.