File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
" [email protected] " 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 "[email protected] " 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
176177else
177178 make docs
178179fi
You can’t perform that action at this time.
0 commit comments