quarkus-commons/.gitea/workflows/build.yml
Jorge Bornhausen 2d9bd1710c
All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 10m12s
initial commit
2024-10-18 18:15:43 +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: 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