Attempt to switch to maven #167
Workflow file for this run
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: Bump and Publish Development Branch | |
| on: | |
| push: | |
| branches: [ development ] | |
| workflow_dispatch: | |
| jobs: | |
| bump: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Latest Commit | |
| uses: actions/checkout@v4.2.2 | |
| - name: Bump Version | |
| id: bump | |
| uses: Plugily-Projects/version-bump-action@v8 | |
| with: | |
| github-token: ${{ secrets.github_token }} | |
| auto-version-bump: true | |
| - name: Print Version | |
| run: "echo 'New Version: ${{steps.bump.outputs.version}}'" | |
| publish: | |
| needs: bump | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Latest Commit | |
| uses: actions/checkout@v4.2.2 | |
| with: | |
| ref: 'development' | |
| - name: Set up Maven | |
| uses: stCarolas/setup-maven@v5 | |
| with: | |
| maven-version: 3.8.2 | |
| - name: Cache | |
| uses: actions/cache@v4.2.2 | |
| with: | |
| path: ~/.m2/repository | |
| key: maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: maven- | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4.6.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| java-package: jdk | |
| - name: Publish with Maven | |
| uses: s4u/maven-settings-action@v3.1.0 | |
| with: | |
| servers: | | |
| [{ | |
| "id": "Snapshot", | |
| "username": "${{ secrets.SNAPSHOTSUSERNAME }}", | |
| "password": "${{ secrets.SNAPSHOTSPASSWORD }}" | |
| }] | |
| - run: mvn versions:set -DnewVersion=${{steps.bump.outputs.version}} | |
| - run: mvn clean verify compile package site:site javadoc:javadoc javadoc:jar deploy -f pom.xml |