Skip to content

Publish package to the Maven Repository #3

Publish package to the Maven Repository

Publish package to the Maven Repository #3

Workflow file for this run

name: Publish package to the Maven Repository
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish:
runs-on: [ self-hosted, small ]
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish package
run: ./gradlew publish
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}