We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c654b2c commit e8ba9e1Copy full SHA for e8ba9e1
.jenkins/build.sh
@@ -151,6 +151,14 @@ elif [[ "${JOB_TYPE}" == "manager" ]]; then
151
# Step 7: push new HTML files and static files to gh-pages
152
if [[ "$COMMIT_SOURCE" == "refs/heads/master" || "$COMMIT_SOURCE" == "refs/heads/main" ]]; then
153
git clone https://github.com/pytorch/tutorials.git -b gh-pages gh-pages
154
+ # Clean up directories that contain tutorials
155
+
156
+ for dir in beginner intermediate prototype recipes advanced distributed vision text audio; do
157
+ if [ -d "gh-pages/$dir" ]; then
158
+ rm -rf "gh-pages/$dir"
159
+ fi
160
+ done
161
162
cp -r docs/* gh-pages/
163
pushd gh-pages
164
# DANGER! DO NOT REMOVE THE `set +x` SETTING HERE!
0 commit comments