ci(github-actions): add actions to perform releases using maven-release-plugin
All checks were successful
Build / build (pull_request) Successful in 1m41s

This commit is contained in:
Jorge Bornhausen 2024-12-19 17:24:28 +01:00
parent c9995eb309
commit 01fe45047a
Signed by: jorge.bornhausen
SSH key fingerprint: SHA256:X2ootOwvCeP4FoNfmVUFIKIbhq95tAgnt7Oqg3x+lfs
3 changed files with 114 additions and 3 deletions

View file

@ -1,61 +0,0 @@
name: Build, test and publish the Quarkus libraries
on:
push:
paths-ignore:
- '.gitattributes'
- '.gitignore'
- '.github/renovate.json5'
- 'docs/**'
- 'README.md'
workflow_dispatch:
env:
COMMON_MAVEN_OPTS: "-e -B --fae"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: https://github.com/actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- 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",
"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 $COMMON_MAVEN_OPTS verify
- name: Analyze with Sonar
if: vars.SONAR_ENABLED == 'true'
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }}
run: ./mvnw $COMMON_MAVEN_OPTS org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=quarkus-commons -Dsonar.projectName='quarkus-commons' -Dsonar.coverage.jacoco.xmlReportPaths=../**/target/jacoco-report/jacoco.xml
- name: Upload libs to Kvant maven registry
if: github.ref == 'refs/heads/main'
run: ./mvnw $COMMON_MAVEN_OPTS deploy -Dmaven.test.skip=true -Dmaven.javadoc.skip=true