diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03b8da8b..3cec5a50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -182,4 +182,4 @@ jobs: gpg --batch --yes --pinentry-mode loopback --passphrase $GPG_SIGNING_PASSPHRASE --list-keys - name: "Publish" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} - run: mvn clean package javadoc:jar source:jar gpg:sign deploy:deploy -DskipTests -Dgpg.passphrase=${GPG_SIGNING_PASSPHRASE} \ No newline at end of file + run: mvn --batch-mode clean deploy -P sdk-release -DskipTests=true -Dgpg.passphrase=$GPG_SIGNING_PASSPHRASE \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3d090633..5fafdad1 100644 --- a/pom.xml +++ b/pom.xml @@ -330,10 +330,12 @@ sdk-release - - https://artifacts.alfresco.com/nexus/content/repositories/alfresco-docs/alfresco-sdk-aggregator/latest - deploy site-deploy - + + + central-releases-staging + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + @@ -352,10 +354,22 @@ --pinentry-mode loopback + ${gpg.passphrase} + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + central-releases-staging + https://oss.sonatype.org/ + true + + org.apache.maven.plugins maven-release-plugin