Skip to content

Commit

Permalink
update build action
Browse files Browse the repository at this point in the history
  • Loading branch information
12rcu committed Jul 21, 2024
1 parent 7ca90cd commit ad6134d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/monstera-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
20 changes: 0 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ad6134d

Please sign in to comment.