File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -65,14 +65,19 @@ if [ "$PROJECT" == "orm" ] || [ "$PROJECT" == "reactive" ] || [ "$PROJECT" == "m
65
65
RELEASE_VERSION_BASIS=$( echo " $RELEASE_VERSION " | sed -E ' s/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/' )
66
66
RELEASE_VERSION_FAMILY=$( echo " $RELEASE_VERSION " | sed -E ' s/^([0-9]+\.[0-9]+).*/\1/' )
67
67
" $SCRIPTS_DIR /validate-release.sh" $PROJECT $RELEASE_VERSION
68
+
69
+ EXTRA_ARGS=" "
70
+ if [ -f " ./jreleaser.yml" ]; then
71
+ EXTRA_ARGS+=" publish"
72
+ fi
73
+
68
74
# set release version
69
75
# update changelog from JIRA
70
76
# tags the version
71
77
# changes the version to the provided development version
72
- ./gradlew clean releasePrepare pTML -x test --no-scan --no-daemon --no-build-cache \
78
+ ./gradlew clean releasePrepare -x test --no-scan --no-daemon --no-build-cache \
73
79
-PreleaseVersion=$RELEASE_VERSION -PdevelopmentVersion=$DEVELOPMENT_VERSION \
74
- -PgitRemote=origin -PgitBranch=$BRANCH \
75
- -Dmaven.repo.local=$( pwd) /build/staging-deploy/maven
80
+ -PgitRemote=origin -PgitBranch=$BRANCH $EXTRA_ARGS
76
81
else
77
82
if [[ " $PROJECT " != " tools" && " $PROJECT " != " hcann" && ! $PROJECT =~ ^infra-.+ ]]; then
78
83
# These projects do not have a distribution bundle archive,
You can’t perform that action at this time.
0 commit comments