From b11aded56daf2e34a916e9f84d1f1e80ee46c7e6 Mon Sep 17 00:00:00 2001 From: Florent Maitre Date: Tue, 31 Jan 2023 18:48:09 +0100 Subject: [PATCH] [#420] Fix a bug where previous documentation were also copied when preparing a new release --- buildSrc/src/main/kotlin/release.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildSrc/src/main/kotlin/release.gradle.kts b/buildSrc/src/main/kotlin/release.gradle.kts index 7ceca43f6..31e49b83e 100644 --- a/buildSrc/src/main/kotlin/release.gradle.kts +++ b/buildSrc/src/main/kotlin/release.gradle.kts @@ -66,6 +66,8 @@ fun archiveDocumentation(version: String) { from("docs") into("docs/$version") exclude("_*", "Gemfile*") + val versionRegex = "^\\d+.\\d+.\\d+$".toRegex() + exclude { versionRegex.matches(it.name) } } val text = """