| | |
| | | |
| | | on: |
| | | workflow_run: |
| | | push: |
| | | branches: [ master ] |
| | | branches: [ master ] |
| | | workflows: ["Build Maven"] |
| | | types: [completed] |
| | | workflow_dispatch: |
| | | jobs: |
| | | deploy: |
| | | name: Maven deploy |
| | | if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == '' }} |
| | | if: ${{ github.event.workflow_run.conclusion.event=="push" && (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == '') }} |
| | | runs-on: 'ubuntu-latest' |
| | | steps: |
| | | - name: Print github context |
| | |
| | | MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} |
| | | MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.retryHandler.count=10 |
| | | if: ${{ env.MAVEN_USERNAME!='' && env.MAVEN_PASSWORD!=''}} |
| | | run: mvn --batch-mode --update-snapshots -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy --file pom.xml |
| | | run: mvn --batch-mode --update-snapshots -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy --file pom.xml |