Skip to content

update pom.xml to use central publishing maven plugin, add workflow (… #1

update pom.xml to use central publishing maven plugin, add workflow (…

update pom.xml to use central publishing maven plugin, add workflow (… #1

Workflow file for this run

name: Make release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java for publishing to Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
cache: 'maven'
server-id: central
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Make a release
run: mvn -Pdeploy -Pproduction --no-transfer-progress --batch-mode clean deploy
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_SONATYPE_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_SONATYPE_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }}
MAVEN_GPG_KEY: ${{ secrets.ORG_GPG_PRIVATE_KEY }}