diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dd6a9682b..ae5d86010 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -175,10 +175,14 @@ jobs: - name: Install jars if: env.DEPLOY_OSSRH == 'true' run: ./mvnw install -B -q - - name: Publish to ossrh + - name: Publish to Central Publisher Portal if: env.DEPLOY_OSSRH == 'true' run: | echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg export GPG_TTY=$(tty) gpg --batch --import private-key.gpg + echo "Starting Maven deploy..." ./mvnw -V -B -Dgpg.skip=false -s settings.xml deploy + echo "Maven deploy completed" + curl -X POST https://central.sonatype.com/manual/upload/defaultRepository/io.dapr + echo "Manual upload completed" diff --git a/pom.xml b/pom.xml index 81503672d..359385fff 100644 --- a/pom.xml +++ b/pom.xml @@ -162,21 +162,21 @@ maven-resources-plugin ${maven-resources-plugin.version} - - org.sonatype.central - central-publishing-maven-plugin - ${central-publishing-maven-plugin.version} - true - - central - true - published - - + - + + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} + true + + central + true + published + + org.jacoco jacoco-maven-plugin