Skip to content

Commit fe4cbcd

Browse files
author
Will Feng
committed
Disable gh-pages push from CircleCI
1 parent 1ccddb3 commit fe4cbcd

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.jenkins/build.sh

+17-16
Original file line numberDiff line numberDiff line change
@@ -157,22 +157,23 @@ elif [[ "${JOB_BASE_NAME}" == *manager ]]; then
157157
7z a manager.7z docs
158158
aws s3 cp manager.7z s3://${BUCKET_NAME}/${COMMIT_ID}/manager.7z --acl public-read
159159

160-
# Step 7: push new HTML files and static files to gh-pages
161-
if [[ "$COMMIT_SOURCE" == master ]]; then
162-
git clone https://github.com/pytorch/tutorials.git -b gh-pages gh-pages
163-
cp -r docs/* gh-pages/
164-
pushd gh-pages
165-
# DANGER! DO NOT REMOVE THE `set +x` SETTING HERE!
166-
set +x
167-
git remote set-url origin https://${GITHUB_PYTORCHBOT_USERNAME}:${GITHUB_PYTORCHBOT_TOKEN}@github.com/pytorch/tutorials.git
168-
set -x
169-
git add -f -A || true
170-
git config user.email "soumith+bot@pytorch.org"
171-
git config user.name "pytorchbot"
172-
git commit -m "Automated tutorials push" || true
173-
git status
174-
git push origin gh-pages
175-
fi
160+
# yf225 TODO: re-enable this after tutorial build is fixed
161+
# # Step 7: push new HTML files and static files to gh-pages
162+
# if [[ "$COMMIT_SOURCE" == master ]]; then
163+
# git clone https://github.com/pytorch/tutorials.git -b gh-pages gh-pages
164+
# cp -r docs/* gh-pages/
165+
# pushd gh-pages
166+
# # DANGER! DO NOT REMOVE THE `set +x` SETTING HERE!
167+
# set +x
168+
# git remote set-url origin https://${GITHUB_PYTORCHBOT_USERNAME}:${GITHUB_PYTORCHBOT_TOKEN}@github.com/pytorch/tutorials.git
169+
# set -x
170+
# git add -f -A || true
171+
# git config user.email "soumith+bot@pytorch.org"
172+
# git config user.name "pytorchbot"
173+
# git commit -m "Automated tutorials push" || true
174+
# git status
175+
# git push origin gh-pages
176+
# fi
176177
else
177178
make docs
178179
fi

0 commit comments

Comments
 (0)