diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5b4dc55..b1b8d0d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -48,8 +48,8 @@ jobs:
node-version: 14.x
registry-url: "https://npm.pkg.github.com"
scope: "@dipa-projekt"
- - name: Build & Analyze with Maven
- run: mvn -s .mvn/settings.xml -P develop-ci -Ddocker.skip.build=true -B clean install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar --file pom.xml
+ - name: Release with Maven
+ run: mvn -s .mvn/settings.xml -B -DreleaseVersion=${{ github.event.inputs.release_version }} gitflow:release --file pom.xml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
diff --git a/.mvn/settings.xml b/.mvn/settings.xml
index 1adbbb8..3758525 100644
--- a/.mvn/settings.xml
+++ b/.mvn/settings.xml
@@ -37,7 +37,7 @@
github
${env.GIT_HUB_USERNAME}
- ${env.GIT_HUB_PACKAGES_ACCESS_TOKEN_WRITE}
+ ${env.GIT_HUB_PACKAGES_ACCESS_TOKEN}
github-packages