diff --git a/etc/ci/upload_docs.sh b/etc/ci/upload_docs.sh index dbe35b2aab6d..5a8188df2ded 100755 --- a/etc/ci/upload_docs.sh +++ b/etc/ci/upload_docs.sh @@ -38,9 +38,6 @@ cp apis.html ../../target/doc/servo/ echo "Copied apis.html." cd ../.. -# Clean up the traces of the current doc build. -./etc/ci/clean_build_artifacts.sh - echo "Starting ghp-import." ghp-import -n target/doc echo "Finished ghp-import." @@ -48,3 +45,6 @@ git push -qf \ "https://${TOKEN}@github.com/servo/doc.servo.org.git" gh-pages \ &>/dev/null echo "Finished git push." + +# Clean up the traces of the current doc build. +./etc/ci/clean_build_artifacts.sh