Skip to content

Commit be94449

Browse files
committed
chore: enable publishing only on tag build
1 parent 9a5590b commit be94449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/build-logic/common-plugins/src/main/kotlin/plugins/common.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ tasks {
157157
dependsOn(subprojects.map { it.tasks.build })
158158
dependsOn(":dokkaHtmlMultiModule", ":koverHtmlReport")
159159

160-
val publish = Platform.isLinux
160+
val publish = GithubAction.isTagBuild && Platform.isLinux
161161
if (publish) {
162162
logger.lifecycle("Publishing task is enabled for this build!")
163163
subprojects.mapNotNull { it.tasks.findByName("publish") }.forEach { dependsOn(it) }

0 commit comments

Comments
 (0)