Files
tiesheng-springboot/publish.sh
丁磊 c3a03e48bd
All checks were successful
/ local-deploy (push) Successful in 17s
publish 2.0.17-scope-test
2025-06-09 17:47:16 +08:00

21 lines
319 B
Bash
Executable File

#!/bin/sh
VERSION=2.0.17-scope-test
MESSAGE=test
## 更改版本号
mvn versions:set -DnewVersion=$VERSION
mvn versions:commit
## 推送现有代码
git add .
git commit -m "publish $VERSION"
git push
## 打标签并推送
git tag -a $VERSION -m $MESSAGE
if [ $? -ne 0 ];then
exit 1
fi
git push origin $VERSION