Kaynağa Gözat

Fix deploy docs script

Christopher Mullins 6 yıl önce
ebeveyn
işleme
706eaa767b
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      .prepare_docs

+ 3 - 3
.prepare_docs

@@ -42,10 +42,10 @@ redoc-cli bundle ${API_SPEC_FILE} -o ${redoc_bundle_file} --title 'Milight Hub A
 git fetch origin 'refs/heads/gh-pages:refs/heads/gh-pages'
 git checkout gh-pages -- branches || prepare_docs_log "Failed to checkout branches from gh-pages, skipping..."
 
+mkdir -p "${BRANCHES_DIR}"
+
 if [ -e "./branches" ]; then
-  mv "./branches" "${BRANCHES_DIR}"
-else
-  mkdir -p "${BRANCHES_DIR}"
+  mv ./branches/* "${BRANCHES_DIR}"
 fi
 
 if [ -e "${DOCS_DIR}/gh-pages" ]; then