Prepare development of 1.0.28 #154
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: Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Java 11 and Apache Maven | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 11 | |
| server-id: central | |
| server-username: MAVEN_USERNAME | |
| server-password: MAVEN_CENTRAL_TOKEN | |
| - name: Build Project | |
| run: mvn clean verify | |
| - name: Publish Snapshots | |
| if: github.ref == 'refs/heads/master' | |
| run: | | |
| # Find version | |
| ver=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) | |
| if [[ $ver == *"SNAPSHOT"* ]] | |
| then | |
| mvn deploy | |
| fi | |
| shell: bash | |
| env: | |
| MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }} |