devops: testing old action plugin to help debugging
@@ -57,28 +57,28 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
- server-username: MAVEN_NEXUS_USER # env variable for username in deploy
- server-password: MAVEN_NEXUS_PASSWORD # env variable for token in deploy
+# server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
+# server-username: MAVEN_NEXUS_USER # env variable for username in deploy
+# server-password: MAVEN_NEXUS_PASSWORD # env variable for token in deploy
## IMPORTANT: this creates the 'build' installation folder and must be the FIRST action!
## Deploy in Maven repository
-# - name: Deploy to Maven Central respository
-# uses: samuelmeuli/action-maven-publish@v1
-# with:
-# nexus_username: ${{ secrets.MAVEN_NEXUS_USER }}
-# nexus_password: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
-# gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
-# gpg_passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
-# server_id: ossrh
-# maven_args: -DskipTests
- - name: Copy GPG Private key
- run: echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > private-key.txt && gpg --import --no-tty --batch --yes private-key.txt
- name: Deploy to Maven Central respository
- env:
- MAVEN_NEXUS_USER: ${{ secrets.MAVEN_NEXUS_USER }}
- MAVEN_NEXUS_PASSWORD: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
- run: mvn clean deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} -DskipTests -P deploy
+ uses: samuelmeuli/action-maven-publish@v1
+ with:
+ nexus_username: ${{ secrets.MAVEN_NEXUS_USER }}
+ nexus_password: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
+ gpg_private_key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
+ gpg_passphrase: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
+ server_id: ossrh
+ maven_args: -DskipTests
+# - name: Copy GPG Private key
+# run: echo "${{ secrets.MAVEN_GPG_PRIVATE_KEY }}" > private-key.txt && gpg --import --no-tty --batch --yes private-key.txt
+# - name: Deploy to Maven Central respository
+# env:
+# MAVEN_NEXUS_USER: ${{ secrets.MAVEN_NEXUS_USER }}
+# MAVEN_NEXUS_PASSWORD: ${{ secrets.MAVEN_NEXUS_PASSWORD }}
+# run: mvn clean deploy -Dgpg.passphrase=${{ secrets.MAVEN_GPG_PASSPHRASE }} -DskipTests -P deploy
## Build and deploy Docker images to DockerHub
- name: Login to dockerhub
