redoc/build/prepare_deploy.sh
2016-04-30 22:55:29 +03:00

16 lines
253 B
Bash
Executable File

#!/bin/bash
set -e
set -x
mkdir -p .ghpages-tmp && cd .ghpages-tmp
git checkout gh-pages
cp -R ../releases/* .
git checkout master
cd -
gulp build
cd demo
cp -R ../dist ./dist
mkdir -p releases
cp -R ../.ghpages-tmp/* ./releases/
cd -
gulp copy-version