redoc/build/prepare_deploy.sh

16 lines
253 B
Bash
Raw Normal View History

2016-02-23 12:35:32 +03:00
#!/bin/bash
set -e
set -x
2016-04-30 22:18:11 +03:00
mkdir -p .ghpages-tmp && cd .ghpages-tmp
git checkout gh-pages
cp -R ../releases/* .
git checkout master
cd -
gulp build
2016-02-23 12:35:32 +03:00
cd demo
cp -R ../dist ./dist
2016-04-30 22:18:11 +03:00
mkdir -p releases
cp -R ../.ghpages-tmp/* ./releases/
2016-02-23 12:35:32 +03:00
cd -
2016-04-30 22:18:11 +03:00
gulp copy-version