fix(circleci): reorganize workflow, use env var to get branch name
@@ -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 }}
@@ -496,6 +496,7 @@ workflows:
requires:
- test_pytest
- test_package
+ - build_docs
filters:
branches:
ignore: /.*/
@@ -514,7 +515,6 @@ workflows:
- deploy_docs:
requires:
- - build_docs
- deploy
filters:
branches:
