1 Star 0 Fork 1K

踩着两条虫 / amis

forked from 百度开源 / amis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy-gh-pages.sh 722 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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 ./build/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"
TypeScript
1
https://gitee.com/samchen08/amis.git
git@gitee.com:samchen08/amis.git
samchen08
amis
amis
master

搜索帮助