Fix deployment script

This commit is contained in:
Roman Hotsiy 2016-04-30 23:41:54 +03:00
parent d1005e018d
commit 3405e07d31

View File

@ -1,11 +1,17 @@
#!/bin/bash #!/bin/bash
set -e set -e
set -x set -x
# copy old releases
mkdir -p .ghpages-tmp && cd .ghpages-tmp mkdir -p .ghpages-tmp && cd .ghpages-tmp
# reset local changes before checkout
git reset --hard
git fetch origin gh-pages:gh-pages
git checkout gh-pages git checkout gh-pages
cp -R ../releases/* . cp -R ../releases/* .
git checkout master git checkout master
cd - cd -
# build
gulp build gulp build
cd demo cd demo
cp -R ../dist ./dist cp -R ../dist ./dist