Skip to content

v5.0.0 - Dec 23, 2023 #2

v5.0.0 - Dec 23, 2023

v5.0.0 - Dec 23, 2023 #2

Workflow file for this run

name: publish maven
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: ${{ github.event.repository.name }}
uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: SIGN_KEY_PASS
- name: Publish package
run: mvn --batch-mode clean deploy -Ppublish
env:
SIGN_KEY_PASS: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}