All checks were successful
Build, test and publish the Quarkus libraries / build (push) Successful in 10m12s
43 lines
No EOL
1.1 KiB
YAML
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 |