Skip to content
name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
- name: Publish package
run: mvn -B clean deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}