Skip to content

chore: polish pom.xml #13

chore: polish pom.xml

chore: polish pom.xml #13

Workflow file for this run

name: Maven Deploy
on:
push:
tags:
- 'v*'
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
verify:
name: maven verify
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
cache: maven
java-version: '17'
distribution: 'temurin'
- name: Verify with Maven
run: |
chmod +x ./mvnw
./mvnw -B clean verify --file pom.xml
deploy:
name: maven deploy
needs: verify
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
cache: maven
java-version: '17'
distribution: 'temurin'
server-id: central # <publishingServerId> in pom.xml
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Deploy to Maven Central
run: |
chmod +x ./mvnw
./mvnw -B clean deploy -Dgpg.skip=false --file pom.xml
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}