Skip to content

Commit f2744c0

Browse files
committedJul 29, 2023
chore: fix publishing build
1 parent 61d03fe commit f2744c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ tasks {
150150
}
151151
}
152152

153+
// Set GitHub workflow action output for this build
154+
build { finalizedBy(githubActionOutput) }
155+
153156
register("ciBuild") {
154157
description = "Build with all the reports!"
155158
val publish = GithubAction.isTagBuild && Platform.isLinux
@@ -161,17 +164,14 @@ tasks {
161164
add("dokkaHtmlMultiModule")
162165
if (publish) {
163166
logger.lifecycle("Publishing task is enabled for this build!")
164-
add("publishAllPublicationsToGitHubPackagesRepository")
167+
finalizedBy("publishAllPublicationsToGitHubPackagesRepository")
165168
}
166169
}
167170
dependsOn(*ciBuildTasks.toTypedArray())
168171
named("koverHtmlReport").map { it.mustRunAfter(tasks.build) }
169172
named("dokkaHtmlMultiModule").map { it.mustRunAfter(tasks.build) }
170173
}
171174

172-
// Set GitHub workflow action output for this build
173-
build { finalizedBy(githubActionOutput) }
174-
175175
// Task to print the project version
176176
register("v") {
177177
description = "Print the ${project.name} version!"

0 commit comments

Comments
 (0)