diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..b0c20d26 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: release maven package + +on: + release: + types: [ published ] + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - name: Install JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'zulu' + + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 2 + + - name: Release Maven package + uses: samuelmeuli/action-maven-publish@v1 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} + nexus_username: ${{ secrets.NEXUS_USERNAME }} + nexus_password: ${{ secrets.NEXUS_PASSWORD }} + server_id: sonatype-nexus-staging + maven_profiles: "release" + maven_args: > + -Dmaven.test.skip=true diff --git a/pom.xml b/pom.xml index c6607ca3..717e0bb6 100644 --- a/pom.xml +++ b/pom.xml @@ -211,6 +211,13 @@ + + + + --pinentry-mode + loopback + +