File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,11 @@ elif [ "$PROJECT" == "reactive" ]; then
92
92
exec_or_dry_run ./gradlew ciRelease -PreleaseVersion=$RELEASE_VERSION -PdevelopmentVersion=$DEVELOPMENT_VERSION -PgitRemote=origin -PgitBranch=$BRANCH
93
93
# Create the artifacts and the documentation
94
94
exec_or_dry_run ./gradlew assemble
95
- # Publish the documentation on hibernate.org (production branch)
96
- exec_or_dry_run ./gradlew publishDocumentation -PdocPublishBranch=production
95
+ # We don't publish the documentation for snapshots
96
+ if [[ $RELEASE_VERSION != * -SNAPSHOT ]]; then
97
+ # Publish the documentation on hibernate.org (production branch)
98
+ exec_or_dry_run ./gradlew publishDocumentation -PdocPublishBranch=production
99
+ fi
97
100
# Publish the artifact to OSSRH
98
101
exec_or_dry_run ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PsontaypeOssrhUser=$OSSRH_USER -PsonatypeOssrgPassword=$OSSRH_PASSWORD
99
102
else
You can’t perform that action at this time.
0 commit comments