1 Star 0 Fork 5

mickalpeng / amis-editor-demo

forked from openwjh / amis-editor-demo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deploy-gh-pages.sh 734 Bytes
一键复制 编辑 原始数据 按行查看 历史
liaoxuezhi 提交于 2019-09-30 21:53 . +x
#!/bin/bash
set -e
if [ -z "$(git status --porcelain)" ]; then
# Working directory clean
echo "Working directory clean"
else
# Uncommitted changes
read -p "You got uncommitted changes, press y to continue? " -n 1 -r
echo # (optional) move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Skiped!"
[[ "$0" == "$BASH_SOURCE" ]] && exit 1 || return 1 # handle exits from shell or function but don't exit interactive shell
fi
fi
rm -rf gh-pages
fis3 release gh-pages -c
node ./upload2cdn.js $1
git add gh-pages -f
git commit -m "更新 gh-pages"
git push
git subtree push --prefix gh-pages origin gh-pages
git commit -m 'rebuild pages' --allow-empty
git push origin
echo "done"
1
https://gitee.com/mickalpeng/amis-editor-demo.git
git@gitee.com:mickalpeng/amis-editor-demo.git
mickalpeng
amis-editor-demo
amis-editor-demo
master

搜索帮助