diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d6c40571b..3e6d18c46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,7 +29,7 @@ jobs: 21 cache: 'gradle' - name: Build with Gradle - run: ./gradlew clean spotlessCheck test build + run: ./gradlew clean spotlessCheck test release - uses: actions/upload-artifact@v4 with: name: artifacts diff --git a/buildSrc/src/main/kotlin/versioning.kt b/buildSrc/src/main/kotlin/versioning.kt index 51e4194f6..867ff29c6 100644 --- a/buildSrc/src/main/kotlin/versioning.kt +++ b/buildSrc/src/main/kotlin/versioning.kt @@ -26,7 +26,7 @@ fun Project.gitVersion(): String { private fun Project.runCommand(cmd: String, fallback: String? = null): String { ProcessBuilder(cmd.split("\\s(?=(?:[^'\"`]*(['\"`])[^'\"`]*\\1)*[^'\"`]*$)".toRegex())) - .directory(rootProject.projectDir) + .directory(projectDir) .redirectOutput(ProcessBuilder.Redirect.PIPE) .redirectError(ProcessBuilder.Redirect.PIPE) .start()