1 Star 0 Fork 4

布袋 / EasyMock

forked from Gitee 极速下载 / EasyMock 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deploy-website.sh 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
# to exit in case of error
set -e
# make sure the script is launched from the project root directory
if [ "$(dirname $0)" != "." ]; then
echo "The script should be launched from EasyMock root directory"
exit 1
fi
# clone the website branch
echo "************** CLONE ************************"
git clone --depth=1 --single-branch --branch gh-pages git@github.com:easymock/easymock.git site
pushd site
# delete all none hidden directories (keep .git for instance)
ls -1 | xargs rm -rf
# copy the new site to the branch
cp -R ../website/* .
# to help debugging in case of issue
echo "************** STATUS************************"
git status
# push the site
echo "************** COMMIT ***********************"
git add --ignore-removal .
git commit -m "from master $(git log | head -n 1)"
echo "************** PUSH ************************"
git push origin gh-pages
popd
rm -rf site
1
https://gitee.com/budye/easymock.git
git@gitee.com:budye/easymock.git
budye
easymock
EasyMock
master

搜索帮助