Sync docs from master to gh-pages

This commit is contained in:
buildmaster
2016-08-22 11:33:07 +00:00
parent 61cad70f38
commit c0c064469d
2 changed files with 4 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ function check_if_anything_to_sync() {
exit 0
fi
if ! [ -d docs/target/generated-docs ]; then
if ! [ -d docs/target/generated-docs ] && ! [ "${BUILD}" == "yes" ]; then
echo "No gh-pages sources in docs/target/generated-docs, so not syncing"
exit 0
fi
@@ -101,12 +101,13 @@ function add_docs_from_target() {
local clonedStatic=${ROOT_FOLDER}/target/spring-cloud-static
if [[ ! -e "${clonedStatic}/.git" ]]; then
echo "Cloning Spring Cloud Static to target"
git clone ${SPRING_CLOUD_STATIC_REPO} ${clonedStatic}
git clone ${SPRING_CLOUD_STATIC_REPO} ${clonedStatic} && git checkout gh-pages
else
echo "Spring Cloud Static already cloned - will pull changes"
cd ${clonedStatic} && git checkout gh-pages && git pull origin gh-pages
fi
DESTINATION_REPO_FOLDER=${clonedStatic}/${REPO_NAME}
mkdir -p ${DESTINATION_REPO_FOLDER}
else
if [[ ! -e "${DESTINATION}/.git" ]]; then
echo "[${DESTINATION}] is not a git repository"

View File

@@ -675,7 +675,7 @@ AQAjPgt3eFZQXwt8tsHAVv/QHiY5sI2dRcR+...</pre>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2016-08-22 10:08:07 UTC
Last updated 2016-08-22 11:31:08 UTC
</div>
</div>
</body>