Skip to content

Fix broken tests and automate maven publish (#7) #1

Fix broken tests and automate maven publish (#7)

Fix broken tests and automate maven publish (#7) #1

Workflow file for this run

name: Publish package to the Maven Central Repository
on:
push:
branches:
- main
paths:
- 'docs/**'
- 'src/**'
- 'pom.xml'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}