Skip to content

Commit

Permalink
fix(circleci): reorganize workflow, use env var to get branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Nov 6, 2019
1 parent 61b6c86 commit e520976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ jobs:
echo "Not a tag or master branch - skipping versioned docs."
circleci step halt
else
make -f ./docs/Makefile versioned CURBRANCH=$(git branch | grep \* | cut -d ' ' -f2)
make -f ./docs/Makefile versioned CURBRANCH=$CIRCLE_BRANCH
fi
- save_cache:
key: docs-v1-{{ .Branch }}-{{ .Revision }}
Expand Down Expand Up @@ -496,6 +496,7 @@ workflows:
requires:
- test_pytest
- test_package
- build_docs
filters:
branches:
ignore: /.*/
Expand All @@ -514,7 +515,6 @@ workflows:

- deploy_docs:
requires:
- build_docs
- deploy
filters:
branches:
Expand Down

0 comments on commit e520976

Please sign in to comment.