42 lines
No EOL
1.2 KiB
YAML
42 lines
No EOL
1.2 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: https://github.com/actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: https://github.com/actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Configure Maven CI/CD settings
|
|
uses: https://github.com/s4u/maven-settings-action@v3.1.0
|
|
with:
|
|
servers: |
|
|
[{
|
|
"id": "kvant-gitea",
|
|
"configuration": {
|
|
"httpHeaders": {
|
|
"property": {
|
|
"name": "Authorization",
|
|
"value": "token ${{ secrets.PHOENIX_PACKAGE_WRITER_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 |