Skip to content

Publish to Maven Central #2

Publish to Maven Central

Publish to Maven Central #2

name: Publish to Maven Central
on:
workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish packages
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
publishUsername: ${{ secrets.OSSRH_USERNAME }}
publishPassword: ${{ secrets.OSSRH_PASSWORD }}