Skip to content

Workflow file for this run

name: Publish package to GitHub Packages
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4
with:
distribution: "temurin"
java-version: 11
- name: Publish package
run: |
mvn clean install -DskipTests --batch-mode
mvn --batch-mode -Prelease-github deploy -Ddeploying=true -DskipTests --settings .github/deploy-settings.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}