diff --git a/.github/workflows/deploySettings.xml b/.github/workflows/deploySettings.xml index bee52a49..39bd1183 100644 --- a/.github/workflows/deploySettings.xml +++ b/.github/workflows/deploySettings.xml @@ -6,8 +6,8 @@ central - ${github.user} - ${github.token} + ${central.user} + ${central.password} diff --git a/.github/workflows/releaseToMavenCentral.yml b/.github/workflows/releaseToMavenCentral.yml index 6dccf79d..13efe846 100644 --- a/.github/workflows/releaseToMavenCentral.yml +++ b/.github/workflows/releaseToMavenCentral.yml @@ -15,7 +15,7 @@ jobs: server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file - name: Publish package - run: ./mvnw -s "${{ github.workspace }}/scriptsAndTools/internalOrCiOnly/deploySettings.xml" deploy -Dcentral.user=$MAVEN_CENTRAL_USER -Dcentral.token=$MAVEN_CENTRAL_PASSWORD + run: ./mvnw -s "${{ github.workspace }}/scriptsAndTools/internalOrCiOnly/deploySettings.xml" deploy -Dcentral.user=$MAVEN_CENTRAL_USER -Dcentral.password=$MAVEN_CENTRAL_PASSWORD env: MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }} MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}