diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..e9fd3441 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ + +name: Pulsar-Spark Release + +on: + release: + types: [created] + +jobs: + upload: + name: Upload Release files + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Release Maven package + uses: samuelmeuli/action-maven-publish@v1 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg_passphrase: ${{ secrets.PASSPHRASE }} + nexus_username: ${{ secrets.SONATYPE_USERNAME }} + nexus_password: ${{ secrets.SONATYPE_PASSWORD }} + server_id: ossrh + maven_profiles: release + maven_goals_phases: clean deploy + maven_args: -DskipTests \ No newline at end of file diff --git a/pom.xml b/pom.xml index cb65e344..53f88d1d 100644 --- a/pom.xml +++ b/pom.xml @@ -73,10 +73,11 @@ 3.7.0 3.1.1 3.1.0 - 2.2.1 + 3.2.0 2.21.0 4.0.2 2.0.0 + 1.6.8 @@ -161,6 +162,19 @@ + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + + jar-no-fork + + + + maven-compiler-plugin ${maven-compiler-plugin.version} @@ -215,6 +229,12 @@ scala-maven-plugin ${scala-maven-plugin.version} + + attach-javadocs + + doc-jar + + eclipse-add-source @@ -365,6 +385,43 @@ + + release + + + + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + --pinentry-mode + loopback + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${nexus-staging-maven-plugin.version} + true + + ossrh + https://oss.sonatype.org/ + true + + + + + @@ -379,9 +436,13 @@ + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + - streamnative - https://api.bintray.com/maven/streamnative/maven/io.streamnative.pulsar-spark/;publish=1 + ossrh + https://oss.sonatype.org/service/local/staging/deploy/maven2/