diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..785001252 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: publish sdks + +on: + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Maven Central Repository + uses: actions/setup-java@v1 + with: + java-version: 8 + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + - name: Publish to Apache Maven Central + run: mvn clean deploy -Dmaven.test.skip=true -Prelease + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} diff --git a/client/all/pom.xml b/client/all/pom.xml index 897ff39ab..b25c91cf3 100644 --- a/client/all/pom.xml +++ b/client/all/pom.xml @@ -213,8 +213,9 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.10.4 + 3.2.0 + none ${project.build.sourceEncoding} true true @@ -252,7 +253,14 @@ org.apache.maven.plugins maven-gpg-plugin - 1.5 + 3.0.1 + + + + --pinentry-mode + loopback + + sign-artifacts diff --git a/pom.xml b/pom.xml index 1ee625bdb..75b9c0942 100644 --- a/pom.xml +++ b/pom.xml @@ -730,7 +730,6 @@ - release @@ -738,7 +737,10 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.9.1 + 3.2.0 + + none + attach-javadocs @@ -762,7 +764,14 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 + 3.0.1 + + + + --pinentry-mode + loopback + + sign-artifacts