Преглед изворни кода

That didnt work on Travis (did work locally). Try this...

Christopher Mullins пре 6 година
родитељ
комит
c19c09daa2
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      .prepare_docs

+ 4 - 3
.prepare_docs

@@ -42,10 +42,11 @@ 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}"
+  mkdir -p "${DIST_DIR}"
+  mv "./branches" "${BRANCHES_DIR}"
+else
+  mkdir -p "${BRANCHES_DIR}"
 fi
 
 if [ -e "${DOCS_DIR}/gh-pages" ]; then