Skip to content

Commit 7073205

Browse files
committed
fix: replace buildDir with layout in stage-vote-release
1 parent 0e6c413 commit 7073205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/stage-vote-release-plugin/src/main/kotlin/com/github/vlsi/gradle/release/StageVoteReleasePlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ class StageVoteReleasePlugin @Inject constructor(
500500
dependsOn(validateBeforeBuildingReleaseArtifacts)
501501
}
502502

503+
val previewSiteDir = layout.buildDirectory.file(project.providers.provider { releaseExt.sitePreview.name })
503504
val syncPreviewSiteRepo = tasks.register("syncPreviewSiteRepo", Sync::class) {
504505
onlyIf { releaseExt.sitePreviewEnabled.get() }
505506
dependsOn(preparePreviewSiteRepo)
@@ -509,7 +510,7 @@ class StageVoteReleasePlugin @Inject constructor(
509510
include("**/.git/**")
510511
}
511512

512-
into(File(buildDir, releaseExt.sitePreview.name))
513+
into(previewSiteDir)
513514
// Just reuse .gitattributes for text/binary and crlf/lf attributes
514515
from("${rootProject.rootDir}/.gitattributes")
515516
with(releaseExt.previewSiteSpec)

0 commit comments

Comments
 (0)