quarkus-commons/.gitea/workflows/build.yml
Jorge Bornhausen 5a98e9261f
All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 10m8s
publish libs only on main branch
2024-10-18 22:08:36 +02:00

43 lines
No EOL
1.1 KiB
YAML

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: Build and run tests
run: ./mvnw verify
- name: Upload libs to Gitea Maven Registry
if: gitea.ref == 'refs/heads/main'
run: ./mvnw deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=true