소스 검색

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