Skip to content

Commit 88c6d4a

Browse files
committed
improve removal logic
1 parent 8ff5960 commit 88c6d4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ jobs:
192192
./build_all_docs.sh latest-only
193193
else
194194
./build_all_docs.sh
195-
# At release time, we don't want to update the latest docs
196-
rm -rf build/html/latest
195+
# At release time, we only want to keep the versioned docs
196+
rm -rf build/html/latest build/html/jupyter_execute/ build/html/*.inv
197197
fi
198198
ls -l build
199199
popd
@@ -208,8 +208,8 @@ jobs:
208208
./build_docs.sh latest-only
209209
else
210210
./build_docs.sh
211-
# At release time, we don't want to update the latest docs
212-
rm -rf build/html/latest
211+
# At release time, we only want to keep the versioned docs
212+
rm -rf build/html/latest build/html/jupyter_execute/ build/html/*.inv
213213
fi
214214
ls -l build
215215
popd

0 commit comments

Comments
 (0)