Skip to content

2024.04.01

2024.04.01 #13

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:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: liberica
java-version: 21
- name: Publish package
run: ./mvnw versions:set -DnewVersion=${{ github.event.release.tag_name }} && ./mvnw --batch-mode --update-snapshots -DskipTests -Pexpose-runtime-metadata,production deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}