Score
0
Watch 31 Star 118 Fork 25

百度开源 / amisTypeScript

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
此仓库主要用于镜像和文档,主要开发依然在 https://github.com/baidu/amis spread retract

https://baidu.gitee.io/amis/docs/index

  • TypeScript 55.6%
  • JavaScript 17.2%
  • HTML 15.2%
  • CSS 12.0%
Clone or download
deploy-gh-pages.sh 722 Bytes
Copy Edit Raw Blame History
#!/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"

Comment ( 0 )

Sign in for post a comment

TypeScript
1
https://gitee.com/baidu/amis.git
git@gitee.com:baidu/amis.git
baidu
amis
amis
master

Search