diff --git a/.github/workflows/deploy-jdk8.yml b/.github/workflows/deploy-jdk8.yml deleted file mode 100644 index 866c5c7..0000000 --- a/.github/workflows/deploy-jdk8.yml +++ /dev/null @@ -1,30 +0,0 @@ -# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created -# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path - -name: Deploy New java8 Version - -on: workflow_dispatch -# push: -# branches: [ support/4.x-jdk8 ] - -jobs: - build: - - 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: GPG Setup - env: - GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }} - GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} - run: ./gpg-setup.sh - - name: Deploy to OSS Sonatype - env: - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} - # mvn -Prelease source:jar javadoc:jar deploy -Dgpg.passphrase=thephrase - run: mvn -B -Prelease source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 45f50a4..c99b4dc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,7 +10,7 @@ on: workflow_dispatch # - 'v*' jobs: - build: + deploy: runs-on: ubuntu-latest @@ -31,3 +31,23 @@ jobs: # mvn -Prelease source:jar javadoc:jar deploy -Dgpg.passphrase=thephrase run: mvn -B -Prelease source:jar javadoc:jar deploy --file pom.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} + deploy-jdk8: + + 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: GPG Setup + env: + GPG_KEY_BASE64: ${{ secrets.GPG_KEY_BASE64 }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + run: ./gpg-setup.sh + - name: Deploy to OSS Sonatype + env: + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + # mvn -Prelease source:jar javadoc:jar deploy -Dgpg.passphrase=thephrase + run: mvn -B -Prelease source:jar javadoc:jar deploy --file pom-jdk8.xml -s settings-template.xml -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }}