Skip to content

Commit 7c208b1

Browse files
Hibernate-CIDavideD
authored andcommitted
hibernate/hibernate-reactive#1956 Skip doc publishing for snapshots
Only for Hibernate Reactive
1 parent 2cbde3f commit 7c208b1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

publish.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,11 @@ elif [ "$PROJECT" == "reactive" ]; then
9292
exec_or_dry_run ./gradlew ciRelease -PreleaseVersion=$RELEASE_VERSION -PdevelopmentVersion=$DEVELOPMENT_VERSION -PgitRemote=origin -PgitBranch=$BRANCH
9393
# Create the artifacts and the documentation
9494
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
97100
# Publish the artifact to OSSRH
98101
exec_or_dry_run ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -PsontaypeOssrhUser=$OSSRH_USER -PsonatypeOssrgPassword=$OSSRH_PASSWORD
99102
else

0 commit comments

Comments
 (0)