Skip to content

Publish package to the Maven Central Repository #8

Publish package to the Maven Central Repository

Publish package to the Maven Central Repository #8

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
release:
types:
- created
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install Java and Maven
uses: actions/setup-java@v1
with:
java-version: 11
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
server_id: ossrh