Skip to content

Commit fbe6029

Browse files
committed
DOC: Set release mode when deploying devdocs only
But not for PRs.
1 parent d64831a commit fbe6029

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.circleci/config.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)