From 2853d2955ebd0de795534fa4c506ec9aa49ca2a8 Mon Sep 17 00:00:00 2001
From: Jonathan Lukas <jonathan.lukas@camunda.com>
Date: Mon, 22 Apr 2024 11:16:49 +0200
Subject: [PATCH] added ghcr login step to publish flow

---
 .github/workflows/mvn-release.yml | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/mvn-release.yml b/.github/workflows/mvn-release.yml
index 63312ff..7019894 100644
--- a/.github/workflows/mvn-release.yml
+++ b/.github/workflows/mvn-release.yml
@@ -16,19 +16,22 @@ jobs:
   publish:
     runs-on: ubuntu-latest
     steps:
-
       - name: Check out code
         uses: actions/checkout@v4
-
       - name: Set up Java environment
         uses: actions/setup-java@v4
         with:
-          java-version: 17
-          distribution: zulu
+          java-version: 21
+          distribution: temurin
           cache: maven
           gpg-private-key: ${{ secrets.MAVEN_CENTRAL_GPG_SIGNING_KEY_SEC }}
           gpg-passphrase: MAVEN_CENTRAL_GPG_PASSPHRASE
-
+      - name: Login to GitHub Container Registry
+        uses: docker/login-action@v3
+        with:
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
       - name: Deploy SNAPSHOT / Release
         uses: camunda-community-hub/community-action-maven-release@v1
         with: