diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ef4f7d6..7d044a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release +name: Release - Publish to Sonatype Maven Central on: workflow_dispatch: diff --git a/build.gradle b/build.gradle index b28f107..ac6ed61 100644 --- a/build.gradle +++ b/build.gradle @@ -82,3 +82,21 @@ javadoc { options.addBooleanOption('html5', true) } } + +jreleaser { + signing { + active = 'ALWAYS' + armored = true + } + deploy { + maven { + mavenCentral { + sonatype { + active = 'ALWAYS' + url = 'https://central.sonatype.com/api/v1/publisher' + stagingRepository('build/staging-deploy') + } + } + } + } +}