Skip to content

Qanary commons deployment to maven central repository #569

Qanary commons deployment to maven central repository

Qanary commons deployment to maven central repository #569

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository # extend sparse checkout if more package need to be deployed
uses: actions/checkout@v4
with:
path: qanary_commons
- name: Set up Maven Central Repository # Configures settings.xml with required credentials
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_PASSWORD }}
gpg-passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Print settings.xml
run: cat $HOME/.m2/settings.xml
- name: Publish package
run: mvn clean deploy -pl qanary_commons