diff --git a/.github/workflows/monstera-publish.yml b/.github/workflows/monstera-publish.yml index cf1870d..018f3b0 100644 --- a/.github/workflows/monstera-publish.yml +++ b/.github/workflows/monstera-publish.yml @@ -21,9 +21,9 @@ jobs: distribution: 'temurin' - name: Publish to Maven Central - uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + uses: gradle/gradle-build-action@v3 with: - arguments: clean build jreleaserConfig publish debug_release jreleaserFullRelease + arguments: jreleaserConfig publish jreleaserFullRelease env: JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }} JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }} diff --git a/build.gradle.kts b/build.gradle.kts index d2fa475..b9c5db5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -88,26 +88,6 @@ jreleaser { } } -task("debug_release") { - println("Staging Repo: ${layout.buildDirectory.dir("staging-deploy").get().asFile.path}") - println("Contains Files:") - layout.buildDirectory.dir("staging-deploy").get().asFile.walk().maxDepth(1).forEach { - println(it.name) - } -} - -task("create_output_dir") { - layout.buildDirectory.dir("jreleaser").get().asFile.let { - if(!it.isDirectory) { - it.mkdirs() - } - } -} - -tasks["jreleaserConfig"].dependsOn("create_output_dir") -tasks["publish"].dependsOn("create_output_dir") -tasks["jreleaserFullRelease"].dependsOn("create_output_dir") - publishing { publications { register("release", MavenPublication::class) {