[maven-release-plugin] prepare for next development iteration #205
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
| # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions | |
| name: Build | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: # Allow running manually from web UI | |
| jobs: | |
| package: | |
| name: Maven Build | |
| runs-on: ubuntu-latest | |
| # Only run on pushes or if pull request from fork | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up JDK | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| cache: 'maven' | |
| - name: Build with Maven | |
| # --batch-mode: Disable interactive input, making logs cleaner for CI. | |
| # -show-version: Print Maven and JDK version info. | |
| # --update-snapshots: Force update of snapshot dependencies. | |
| # --errors: Show full error stack traces on failure. | |
| # -DskipTests: Skip running tests. They should be run locally with custom credentials, see CONTRIBUTING.md. | |
| run: ./mvnw --batch-mode -show-version --update-snapshots --errors package -DskipTests |