reagent/build-docs.sh
Juho Teperi 54f5e5842f Deploy site and docs from CircleCI
- Add missing Circle workflow
- Automatically deploy tagged docs
- Deploy prod-npm build for site, should work now (latest
Closure-compiler fixes sliders with React)
2018-04-16 19:52:47 +03:00

25 lines
338 B
Bash
Executable File

#!/bin/bash
set -e
TAG=$CIRCLE_TAG
if [[ -z $TAG ]]; then
echo "Set CIRCLE_TAG"
exit 1
fi
lein codox
rm -fr tmp
git clone git@github.com:reagent-project/reagent-project.github.io.git tmp
mkdir -p "tmp/docs/$TAG/"
cp -r target/doc/* "tmp/docs/$TAG/"
cd tmp
git add .
git commit -m "Built docs from $TAG"
git push
rm -rf tmp