Skip to content

Release to github packages #5

Release to github packages

Release to github packages #5

Workflow file for this run

name: Release
run-name: "Release to github packages"
on:
release:
types: [ created ]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
cache: maven
# Build all modules except klass-forvaltning since it is not compatible with JDK 17
- name: Publish to GitHub Packages
run: mvn --batch-mode deploy -pl '!:klass-forvaltning' -P github -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}