chore: Allow release with snapsho test dependency

Currently testcontainers-keycloak library is only available as a
snapshot version for keycloak-x. This commit sets the keycloak
distribution for releases to keycloak. This disables the profile that
uses the snapshot dependency.
This commit is contained in:
Sven-Torben Janus 2021-12-11 18:45:00 +01:00
parent 165bd44e4e
commit 3b6add3942

View file

@ -37,7 +37,7 @@ jobs:
${{ runner.os }}-maven-
- name: Release to GitHub packages
run: |
mvn -B clean release:prepare release:perform -s maven-github-settings.xml --file pom.xml -DpushChanges=false -DlocalCheckout=true -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }}
mvn -B clean release:prepare release:perform -s maven-github-settings.xml --file pom.xml -DpushChanges=false -DlocalCheckout=true -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -DdevelopmentVersion=${{ github.event.inputs.developmentVersion }} -Dkeycloak.dist=keycloak
git push origin v${{ github.event.inputs.releaseVersion }}
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"