Skip to content

Workflow file for this run

name: Publish package to the Maven Central Repository
on: [ push ] # Trigger the workflow when a push (commit) event occurs
#on:
# release:
# types: [ created ]
jobs:
publish-github:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
server-id: github
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}