devops: fix set-java for deploy
@@ -58,8 +58,8 @@ jobs:
with:
java-version: 1.8
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
- server-username: ${{ secrets.MAVEN_NEXUS_USER }} # env variable for username in deploy
- server-password: ${{ secrets.MAVEN_NEXUS_PASSWORD }} # env variable for token in deploy
+ server-username: MAVEN_NEXUS_USER # env variable for username in deploy
+ server-password: MAVEN_NEXUS_PASSWORD # env variable for token in deploy
- name: Build with Maven CLI
run: mvn -T 2 clean install -DskipTests
@@ -80,6 +80,9 @@ jobs:
run: gpg --import --no-tty --batch --yes $GITHUB_WORKSPACE/private-key.txt
- name: Deploy to Maven Central respository 2
run: mvn clean deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} -DskipTests -P deploy
+ env:
+ MAVEN_NEXUS_USER: ${{ secrets.MAVEN_NEXUS_USER }}
+ MAVEN_NEXUS_PASSWORD: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
## Deploying to DockerHub
- name: Login to dockerhub
