Ai
2 Star 0 Fork 65

sdvdxl/iotos-soft-gateway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deploy.sh 708 Bytes
一键复制 编辑 原始数据 按行查看 历史
sdvdxl 提交于 2021-05-19 10:41 +08:00 . 升级版本为 3.2.1-SNAPSHOT
#!/usr/bin/env bash
# 使用 ./deploy install 安装到本地
# ./deploy deploy 生成 maven jar包
# ./deploy upload 生成 maven jar 包并 commit
VERSION="3.2.1-SNAPSHOT"
echo "版本号:$VERSION"
updateVersion(){
mvn versions:set -DnewVersion=$VERSION versions:update-child-modules versions:update-properties
}
act=$1
deploy() {
updateVersion
mvn deploy
}
install() {
updateVersion
mvn clean install -DskipTests=true
}
upload(){
deploy
git add -A
git commit -m "update version to: $VERSION"
git push
}
if [[ "deploy" = "$act" ]] ; then
deploy
elif [[ "install" = "$act" ]] ; then
install
elif [[ "upload" = "$act" ]] ; then
upload
else
echo 'deploy 或者 install'
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sdvdxl/iotos-soft-gateway.git
git@gitee.com:sdvdxl/iotos-soft-gateway.git
sdvdxl
iotos-soft-gateway
iotos-soft-gateway
master

搜索帮助