This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git


The following commit(s) were added to refs/heads/master by this push:
     new 6e8f5a86 Prepare for snapshot deploy
6e8f5a86 is described below

commit 6e8f5a869e4aa2943f14b5d1449dd94c79c05444
Author: Sebb <s...@apache.org>
AuthorDate: Tue Dec 19 14:25:22 2023 +0000

    Prepare for snapshot deploy
---
 .github/workflows/maven.yml | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index b22394b5..e440b59d 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -33,15 +33,23 @@ jobs:
       with:
         persist-credentials: false
     - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@v3
+      uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # 
v4.0.0
       with:
         distribution: temurin
         java-version: ${{ matrix.java }}
         cache: 'maven'
+        # these values cause the plugin to set up the Maven settings.xml file
+        server-id: apache.snapshots.https # Value of the 
distributionManagement/repository/id field of the pom.xml
+        server-username: NEXUS_USER # env variable for username in deploy
+        server-password: NEXUS_PW # env variable for token in deploy
     - name: Build with Maven
       # Use the default goal
       if: matrix.java == 8
-      run: mvn --show-version --batch-mode --no-transfer-progress
+      env:
+        NEXUS_USER: ${{ secrets.NEXUS_USER }}
+        NEXUS_PW: ${{ secrets.NEXUS_PW }}
+      run: mvn --show-version --batch-mode --no-transfer-progress # clean 
package deploy
+      # Uncomment the maven goals above when creds are available  ^^^
     - name: Build with Maven including examples
       # Examples require Java 11+.
       # Building javadoc errors when run with the package phase with an error 
about

Reply via email to