1 Star 0 Fork 0

小小梦想--/CloudClass-Android

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
jitpack.sh 2.13 KB
一键复制 编辑 原始数据 按行查看 历史
陈镜吾 提交于 2021-06-17 18:29 . release release/apaas/1.1.2
#!/bin/zsh
commitMsg=$1
releaseTag=$2
if [ -z "$commitMsg" ]
then
echo "!!!!!commitMsg is empty!!!!"
exit 0
fi
if [ -z "$releaseTag" ]
then
echo "!!!!!releaseTag is empty!!!!"
exit 0
fi
# shellcheck disable=SC2006
echo "-----ready to push code to `git branch --show-current` branch----"
git commit -a -m "$commitMsg"
# shellcheck disable=SC2181
if [ $? -eq 0 ]; then
echo "-----git commit success!----"
echo "Are you sure to push to the remote end?(Y/N)"
read -r proceed
while [ "${proceed}" != "Y" ] && [ "${proceed}" != "N" ]; do
echo "Error Input!"
read -r proceed
done
if [ "${proceed}" = "Y" ]; then
git push origin aPaaS:aPaaS
# shellcheck disable=SC2181
if [ $? -eq 0 ]; then
echo "-----push code success!---"
echo "Are you sure to create tag?(Y/N)"
read -r proceed
while [ "${proceed}" != "Y" ] && [ "${proceed}" != "N" ]; do
echo "Error Input!"
read -r proceed
done
if [ "${proceed}" = "Y" ]; then
echo "-----ready to create new release->$releaseTag----"
# shellcheck disable=SC2086
git tag -a $releaseTag -m "$commitMsg"
# shellcheck disable=SC2181
if [ $? -eq 0 ]; then
echo "-----create tag success!----"
else
echo "-----create tag FAILED!!!----"
exit 0
fi
# shellcheck disable=SC2086
git push origin $releaseTag
# shellcheck disable=SC2181
if [ $? -eq 0 ]; then
echo "-----create release->$releaseTag success!----"
else
echo "-----push tag FAILED!!!----"
exit 0
fi
elif [ "${proceed}" = "N" ]; then
echo "Do not create tag, Exit!"
exit 0
fi
else
echo "-----push code FAILED!!!----"
exit 0
fi
elif [ "${proceed}" = "N" ]; then
echo "Do not push, Exit!"
exit 0
fi
else
echo "-----git commit FAILED!!!----"
exit 0
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/naojiangzhalie666/CloudClass-Android.git
git@gitee.com:naojiangzhalie666/CloudClass-Android.git
naojiangzhalie666
CloudClass-Android
CloudClass-Android
master

搜索帮助