Explorar o código

Clear dist dir before building docs bundle

Christopher Mullins %!s(int64=6) %!d(string=hai) anos
pai
achega
7761c1b57f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      .prepare_docs

+ 2 - 0
.prepare_docs

@@ -31,6 +31,8 @@ DIST_DIR="./dist/docs"
 BRANCHES_DIR="${DIST_DIR}/branches"
 API_SPEC_FILE="${DOCS_DIR}/openapi.yaml"
 
+rm -rf "${DIST_DIR}"
+
 redoc_bundle_file=$(mktemp)
 git_ref_version=$(git describe --always)
 branch_docs_dir="${BRANCHES_DIR}/${git_ref_version}"