Pull request #164: Preparation for next development #155
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 ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| path: main | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: ISAITB/itb-commons | |
| path: commons | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| - name: Cache local Maven repository | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}-maven-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven-${{ secrets.CACHE_VERSION }}| | |
| - name: Generate Maven settings | |
| # Version 22 | |
| uses: whelk-io/maven-settings-xml-action@9dc09b23833fa9aa7f27b63db287951856f3433d | |
| with: | |
| repositories: > | |
| [ | |
| { | |
| "id": "itbRepoRead", | |
| "name": "itbRepoRead", | |
| "url": "${{ secrets.ITB_MVN_REPO_URL }}", | |
| "releases": { | |
| "enabled": "true" | |
| }, | |
| "snapshots": { | |
| "enabled": "true" | |
| } | |
| } | |
| ] | |
| servers: > | |
| [ | |
| { | |
| "id": "itbRepoRead", | |
| "username": "${{ secrets.ITB_MVN_REPO_USER }}", | |
| "password": "${{ secrets.ITB_MVN_REPO_PASS }}" | |
| } | |
| ] | |
| profiles: > | |
| [ | |
| { | |
| "id": "itbRepoRead", | |
| "properties": { | |
| "itbRepoReadUrl": "${{ secrets.ITB_MVN_REPO_URL }}" | |
| } | |
| } | |
| ] | |
| active_profiles: > | |
| [ | |
| "itbRepoRead", "github" | |
| ] | |
| - name: Install commons | |
| run: mvn -B install -DskipTests=true | |
| working-directory: commons | |
| - name: Build with Maven | |
| run: mvn -B package --file pom.xml | |
| working-directory: main |