Skip to content

Update pom.xml to trigger workflow #1

Update pom.xml to trigger workflow

Update pom.xml to trigger workflow #1

Workflow file for this run

name: Publish to Maven Central
on:
workflow_dispatch:
push:
paths:
- 'pom.xml'
branches:
- 'publish-maven-central'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
server-id: central
server-username: SONATYPE_TOKEN_USERNAME
server-password: SONATYPE_TOKEN_PASSWORD
gpg-passphrase: GPG_PASSPHRASE
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Publish
run: mvn --batch-mode --no-transfer-progress deploy -Dgpg.skip=false
env:
SONATYPE_TOKEN_USERNAME: ${{ secrets.SONATYPE_TOKEN_USERNAME }}
SONATYPE_TOKEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}