#!/usr/bin/env sh

set -e

npm run docs:build

cd docs/.vuepress/dist

git init
git add -A
git commit -m 'deploy'

git push -f git@github.com:xiguaxigua/vuepress-demo-block.git master:gh-pages

cd -
rm -rf docs/.vuepress/dist
