Skip to content

Commit 707c047

Browse files
committed
Fix createCurrentDocsFolder task
1 parent 913251b commit 707c047

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

documentation/documentation.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,10 @@ tasks {
447447

448448
val createCurrentDocsFolder by registering(Copy::class) {
449449
dependsOn(prepareDocsForUploadToGhPages)
450-
outputs.dir("$docsDir/current")
451450
onlyIf { replaceCurrentDocs }
452451

453-
from("$docsDir/$docsVersion")
454-
into("$docsDir/current")
452+
from(docsDir.map { it.dir(docsVersion.toString()) })
453+
into(docsDir.map { it.dir("current") })
455454
}
456455

457456
val configureGitAuthor by registering {

0 commit comments

Comments
 (0)