Fix deploy-java.yml workflow

This commit is contained in:
Mathias Wagner
2024-07-21 16:14:38 +02:00
parent 1cd6c12591
commit a09f592b69

View File

@ -47,8 +47,8 @@ jobs:
- name: Build and deploy
if: steps.version_check.outputs.LAST_VERSION != steps.get_version.outputs.VERSION || steps.version_check.outputs.LAST_VERSION == ''
run: |
mkdir ~/.m2
echo "<settings><servers><server><id>github</id><username>${{ github.actor }}</username><password>${{ github.token }}</password></server></servers></settings>" > ~/.m2/settings.xml
mvn -f integrations/java/pom.xml deploy \
-DskipTests \
-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/${{ github.repository }} \
-Dusername=${{ secrets.GITHUB_ACTOR }} \
-Dpassword=${{ secrets.GITHUB_TOKEN }}
-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/${{ github.repository }}