mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
添加 gh-pages 更新脚本
This commit is contained in:
parent
3dcb49c311
commit
5cd2d1984e
31
deploy-gh-pages.sh
Executable file
31
deploy-gh-pages.sh
Executable file
@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -z "$(git status --porcelain)" ]; then
|
||||
# Working directory clean
|
||||
echo "Working directory clean"
|
||||
else
|
||||
# Uncommitted changes
|
||||
echo "Skiped: You got uncommitted changes"
|
||||
exit
|
||||
fi
|
||||
|
||||
rm -rf gh-pages
|
||||
|
||||
fis3 release gh-pages -c
|
||||
|
||||
node ./build/uplaod2cdn.js $2
|
||||
|
||||
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"
|
Loading…
Reference in New Issue
Block a user