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

rec pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/uima-ruta.git


The following commit(s) were added to refs/heads/main by this push:
     new cf0eeb23 No issue: Deploy snapshots to Apache Nexus
cf0eeb23 is described below

commit cf0eeb23115626e190be3839cc446e16ebaea472
Author: Richard Eckart de Castilho <[email protected]>
AuthorDate: Fri Dec 20 14:43:55 2024 +0100

    No issue: Deploy snapshots to Apache Nexus
---
 .github/workflows/maven.yml | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 6b45193b..e95f69d0 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -19,6 +19,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
+        language: [ 'java' ]
         os: [ubuntu-latest, windows-latest]
         jdk: [17]
 
@@ -36,16 +37,25 @@ jobs:
         java-version: ${{ matrix.jdk }}
         distribution: 'temurin'
         cache: maven
+        server-id: apache.snapshots.https
+        server-username: NEXUS_USERNAME
+        server-password: NEXUS_PASSWORD
 
     - name: Set up Maven
       uses: stCarolas/setup-maven@v5
       with:
         maven-version: 3.9.9
 
-    - name: Build with Maven
-      run: mvn --no-transfer-progress -B clean verify --file pom.xml
+    - name: Set up cache date
+      run: echo "CACHE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
 
-# Currently not allowed by INFRA
-#    - name: Publish Test Report
-#      uses: mikepenz/action-junit.report@v5
- 
\ No newline at end of file
+    - name: Build with Maven
+      run: mvn --show-version --batch-mode --no-transfer-progress clean verify
+      
+    - name: Upload to Nexus
+      if: matrix.os == 'ubuntu-latest'
+      env:
+        # `NEXUS_USERNAME` and `NEXUS_PASSWORD` are used in 
`~/.m2/settings.xml` created by `setup-java` action
+        NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
+        NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
+      run: mvn --show-version --batch-mode --errors --no-transfer-progress 
-DskipTests deploy

Reply via email to