3 Star 3 Fork 1

OpenHarmony-Retired/third_party_objenesis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
deploy-website.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
mamingshuai 提交于 2021-06-02 00:35 . update OpenHarmony 2.0 Canary
#!/bin/bash
function pause {
echo
read -p "Press [enter] to continue"
}
# 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 Objenesis root directory"
exit 1
fi
# clone the website branch
echo "************** CLONE ************************"
git clone --depth=1 --branch gh-pages [email protected]:easymock/objenesis.git site
pushd site
# delete all none hidden directories (keep .git for instance)
ls -1 | xargs rm -rf
# compile de new website
pushd ../website
mvn clean package
popd
# copy the new site to the branch
cp -R ../website/target/xsite/* .
# 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)"
pause
echo "************** PUSH ************************"
git push origin gh-pages
popd
rm -rf site
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-retired/third_party_objenesis.git
[email protected]:openharmony-retired/third_party_objenesis.git
openharmony-retired
third_party_objenesis
third_party_objenesis
master

搜索帮助