name: Build, test and publish the Quarkus libraries on: [ push, workflow_dispatch ] jobs: build: runs-on: ubuntu-latest steps: - name: Checkout the code uses: actions/checkout@v4 - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '21' cache: 'maven' - name: Configure Maven CI/CD settings uses: s4u/maven-settings-action@v3.0.0 with: servers: | [{ "id": "kvant-gitea", "configuration": { "httpHeaders": { "property": { "name": "Authorization", "value": "token ${{ secrets.REGISTRY_TOKEN }}" } } } }] - name: Make maven wrapper executable run: chmod +x mvnw - name: Run tests run: ./mvnw verify - name: Upload libs to Gitea Maven Registry if: gitea.ref == 'refs/heads/main' || gitea.ref == 'refs/heads/dev' run: ./mvnw deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=true