diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8308728..75bbe69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,16 @@ jobs: gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} gpg-passphrase: MAVEN_GPG_PASSPHRASE + # Prepare for upload to Maven Central + # https://jreleaser.org/guide/latest/examples/maven/staging-artifacts.html + - name: Build for release + run: | + mvn -ntp -B -Ppublication deploy -DaltDeploymentRepository=local::file:./target/staging-deploy + + - name: List files staged for release + run: | + ls -laR ./target/staging-deploy + # Post JARs to Maven Central # https://jreleaser.org/guide/latest/examples/maven/maven-central.html - name: Release to Maven Central diff --git a/pom.xml b/pom.xml index d2a1039..4c15d15 100644 --- a/pom.xml +++ b/pom.xml @@ -72,6 +72,11 @@ + + org.apache.maven.plugins + maven-deploy-plugin + 3.0.0 + org.apache.maven.plugins maven-compiler-plugin