Replace gradle with maven build (#62) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '[ PUBLISH ] Release build with maven' | |
on: | |
workflow_call: | |
inputs: | |
build_version: | |
description: 'The version to be published' | |
type: string | |
required: true | |
Publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
cache-dependency-path: '**/pom.xml' | |
server-id: 'central' | |
server-username: ${{ secrets.SONATYPE_CENTRAL_USERNAME }} | |
server-password: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }} | |
- name: Download build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: build-artifacts | |
- name: Display structure of downloaded files | |
run: tree | |
- name: Publish to Maven Central | |
run: ./mvnw deploy -DskipTests=true -Dmaven.javadoc.skip=true -B -V | |
- name: Debug | |
if: ${{ failure() }} | |
run: | | |
echo "Failed" | |
tree |