Skip to content

Commit 676282a

Browse files
author
circle-ci
committed
ci: fetch before updating docs
1 parent e353ce0 commit 676282a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/circle/post-test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ fi
3737

3838
set +e # allows `git` commands during prepare-ghpages to fail
3939

40+
git fetch origin
41+
4042
npm run prepare-ghpages $TAGGED_MODULE_NAME $TAGGED_MODULE_VERSION
4143

4244
cd gh-pages

scripts/circle/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ rebuild () {
2525
done
2626
}
2727

28-
if [ "${CIRCLE_BRANCH}" == "master" ] && [ "${CI_PULL_REQUEST}" == "" ]
28+
if [ "${CIRCLE_BRANCH}" == "master" ] &&
29+
([ "${CI_PULL_REQUEST}" == "" ] || [ "${CIRCLE_TAG}" != "" ])
2930
then
3031
# This is a push to master, so system tests will be run.
3132
echo $GCLOUD_TESTS_KEY | base64 --decode > ${HOME}/key.json

0 commit comments

Comments
 (0)