You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/06/10 00:50:20 UTC

[GitHub] [tvm] areusch commented on a diff in pull request #11612: [ci][docs] Don't delete old versions when checking out docs

areusch commented on code in PR #11612:
URL: https://github.com/apache/tvm/pull/11612#discussion_r894069512


##########
jenkins/Deploy.groovy.j2:
##########
@@ -47,7 +47,7 @@ def deploy_docs() {
       git status
       git checkout -B $DOCS_DEPLOY_BRANCH
 
-      rm -rf docs
+      git ls-tree HEAD docs/ | awk '{print $4}' | grep -v 'docs/v0.8.0' | xargs rm -rf

Review Comment:
   i think you can like --name-only or something rather than awk. wanna do that? also...the `grep -v` doesn't seem especially scalable particularly as 0.9.0 release is getting to be imminent. i feel like we should just move the `main` docs to a subdir...thoughts?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org