Skip to content

Publish snapshot to the Sonatype OSSRH #2

Publish snapshot to the Sonatype OSSRH

Publish snapshot to the Sonatype OSSRH #2

name: Publish snapshot to the Sonatype OSSRH
on: workflow_dispatch
jobs:
publish-snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt update && sudo apt install -y graphviz
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "temurin"
cache: maven
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish snapshot package
run: mvn -B -U deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}