Skip to content

Commit 7947fc8

Browse files
authored
Prep change for changing def branch to main (#4306)
1 parent ef177c5 commit 7947fc8

File tree

12 files changed

+56
-56
lines changed

12 files changed

+56
-56
lines changed

.circleci/build_docs/commit_docs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -ex
66
if [ "$2" == "" ]; then
77
echo call as "$0" "<src>" "<target branch>"
88
echo where src is the root of the built documentation git checkout and
9-
echo branch should be "master" or "1.7" or so
9+
echo branch should be "main" or "1.7" or so
1010
exit 1
1111
fi
1212

@@ -20,7 +20,7 @@ git checkout gh-pages
2020
mkdir -p ./"${target}"
2121
rm -rf ./"${target}"/*
2222
cp -r "${src}/docs/build/html/"* ./"$target"
23-
if [ "${target}" == "master" ]; then
23+
if [ "${target}" == "main" ]; then
2424
mkdir -p ./_static
2525
rm -rf ./_static/*
2626
cp -r "${src}/docs/build/html/_static/"* ./_static

.circleci/config.yml

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ commands:
2929
# command: |
3030
# set -ex
3131
# BRANCH=$(git rev-parse --abbrev-ref HEAD)
32-
# if [[ "$BRANCH" != "master" ]]; then
32+
# if [[ "$BRANCH" != "main" ]]; then
3333
# git fetch --force origin ${CIRCLE_BRANCH}/merge:merged/${CIRCLE_BRANCH}
3434
# git checkout "merged/$CIRCLE_BRANCH"
3535
# fi
@@ -936,7 +936,7 @@ jobs:
936936
command: |
937937
set -ex
938938
tag=${CIRCLE_TAG:1:5}
939-
VERSION=${tag:-master}
939+
VERSION=${tag:-main}
940940
eval "$(./conda/bin/conda shell.bash hook)"
941941
conda activate ./env
942942
pushd docs
@@ -982,7 +982,7 @@ jobs:
982982
# https://circleci.com/docs/2.0/configuration-reference/#checkout
983983
set -ex
984984
tag=${CIRCLE_TAG:1:5}
985-
target=${tag:-master}
985+
target=${tag:-main}
986986
~/workspace/.circleci/build_docs/commit_docs.sh ~/workspace $target
987987

988988

@@ -1029,7 +1029,7 @@ workflows:
10291029
filters:
10301030
branches:
10311031
only:
1032-
- master
1032+
- main
10331033
jobs:
10341034
- smoke_test_docker_image_build:
10351035
context: org-member

0 commit comments

Comments
 (0)