Skip to content

Commit

Permalink
Unstable doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-grace committed Mar 13, 2017
1 parent 1d90f1f commit 32056b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ fi

# are we building the docs?
if [ "${DOCS}" != "" ]; then
if [ -z "${TRAVIS_TAG}" ]; then
DOCS="full"
else
DOCS="unstable"
fi
./.travis/deploy_docs.sh
exit 0
fi
Expand Down
10 changes: 8 additions & 2 deletions .travis/deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ git clone [email protected]:fabric-composer/${REPO}.git
git remote set-url origin ${REPO}.git

cd "${DIR}/packages/composer-website/out/${REPO}"

mkdir -p "${DIR}/packages/composer-website/out/${REPO}/unstable"

rm -rf ${DIR}/packages/composer-website/out/${REPO}/*
cp -rf ${DIR}/packages/composer-website/jekylldocs/_site/* .
if [ "${DOCS}" == "full" ]; then
rm -rf ${DIR}/packages/composer-website/out/${REPO}/*
cp -rf ${DIR}/packages/composer-website/jekylldocs/_site/* .
fi

cp -rf ${DIR}/packages/composer-website/jekylldocs/_site/* ./unstable

git add .

Expand Down

0 comments on commit 32056b6

Please sign in to comment.