Skip to content

Publish package to the Maven Central Repository #24

Publish package to the Maven Central Repository

Publish package to the Maven Central Repository #24

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- run: chmod +x gradlew
- uses: gradle/gradle-build-action@v2
with:
arguments: publish
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_SECRET_KEY: ${{ secrets.PGP_SECRET_KEY }}
PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }}