diff --git a/.github/workflows/maven-build.yml b/.github/workflows/build-maven.yml similarity index 68% rename from .github/workflows/maven-build.yml rename to .github/workflows/build-maven.yml index 1a7bdd6..fd1129e 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/build-maven.yml @@ -1,6 +1,3 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - name: maven-build on: @@ -14,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ 8 ] + java: [ 8, 11, 14 ] steps: - uses: kamiazya/setup-graphviz@v1 - uses: actions/checkout@v2 diff --git a/.github/workflows/deploy-sonatype.yml b/.github/workflows/deploy-sonatype.yml new file mode 100644 index 0000000..ea469cb --- /dev/null +++ b/.github/workflows/deploy-sonatype.yml @@ -0,0 +1,40 @@ +name: sonatype-deploy + +on: + push: + tags: + - "v*" + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: kamiazya/setup-graphviz@v1 + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 8 + - name: Build with Maven + run: mvn -B install + - name: Nexus Repo Publish + run: | + gpg --quiet \ + --batch \ + --yes \ + --decrypt \ + --passphrase="${{ secrets.GPG_PASSPHRASE }}" \ + --output codesigning.asc \ + .github/codesigning.asc.gpg + gpg --batch \ + --fast-import codesigning.asc + mvn --settings .github/settings.xml \ + -Dskip-Tests=true \ + -P release \ + -B \ + deploy + env: + NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/master-release-draft.yml b/.github/workflows/draft-release.yml similarity index 83% rename from .github/workflows/master-release-draft.yml rename to .github/workflows/draft-release.yml index 32fac08..f3d4750 100644 --- a/.github/workflows/master-release-draft.yml +++ b/.github/workflows/draft-release.yml @@ -1,4 +1,4 @@ -name: Update draft release on push to master +name: draft-release on: push: