Skip to content

Publish package to GitHub Packages #14

Publish package to GitHub Packages

Publish package to GitHub Packages #14

Workflow file for this run

# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
name: Publish package to GitHub Packages
on:
release:
types: [published]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Deploy to GitHub Packages
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ github.token }}