File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -124,15 +124,13 @@ commands:
124124 command : |
125125 # Set epoch to date of latest tag.
126126 export SOURCE_DATE_EPOCH="$(git log -1 --format=%at $(git describe --abbrev=0))"
127- # Include analytics only when deploying to devdocs.
128- if [ "$CIRCLE_PROJECT_USERNAME" != "matplotlib" ] || \
129- [ "$CIRCLE_BRANCH" != "master" ] || \
130- [[ "$CIRCLE_PULL_REQUEST" == https://github.com/matplotlib/matplotlib/pull/* ]]; then
131- export ANALYTICS=False
132- else
133- export ANALYTICS=True
127+ # Set release mode only when deploying to devdocs.
128+ if [ "$CIRCLE_PROJECT_USERNAME" = "matplotlib" ] && \
129+ [ "$CIRCLE_BRANCH" = "master" ] && \
130+ [ "$CIRCLE_PR_NUMBER" = "" ]; then
131+ export RELEASE_TAG='-t release'
134132 fi
135- make html O="-T -Ainclude_analytics=$ANALYTICS "
133+ make html O="-T $RELEASE_TAG "
136134 rm -r build/html/_sources
137135 working_directory : doc
138136 - save_cache :
You can’t perform that action at this time.
0 commit comments