Java Release CI #217
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Java Release CI | |
| on: workflow_dispatch | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| if: github.actor == github.event.repository.owner.login | |
| env: | |
| MAVEN_REPO_USERNAME: ${{ secrets.nexus_username }} | |
| MAVEN_REPO_PASSWORD: ${{ secrets.nexus_password }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| token: ${{ secrets.git_token }} | |
| - name: Set up JDK 1.8 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 1.8 | |
| - name: Build and publish release with Maven | |
| uses: perplexhub/action-maven-publish-release@master | |
| with: | |
| gpg_private_key: ${{ secrets.gpg_private_key }} | |
| gpg_passphrase: ${{ secrets.gpg_passphrase }} | |
| nexus_username: ${{ secrets.nexus_username }} | |
| nexus_password: ${{ secrets.nexus_password }} | |
| git_username: perplexhub | |
| git_email: ${{ secrets.git_email }} | |
| git_origin_url: https://perplexhub:${{ secrets.git_token }}@github.com/perplexhub/rsql-jpa-specification.git |