You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2024/12/20 11:21:01 UTC
(uima-uimaj) branch main updated: No issue: Avoid building twice by including the deploy in the build step and ask to deploy at end only
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-uimaj.git
The following commit(s) were added to refs/heads/main by this push:
new 8f0c0f91a No issue: Avoid building twice by including the deploy in the build step and ask to deploy at end only
8f0c0f91a is described below
commit 8f0c0f91ae4b004a90113a2be2d87758d94c3ff4
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Fri Dec 20 12:20:55 2024 +0100
No issue: Avoid building twice by including the deploy in the build step and ask to deploy at end only
---
.github/workflows/maven.yml | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index a450621fd..404467ba3 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -50,12 +50,13 @@ jobs:
run: echo "CACHE_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Build with Maven
+ if: matrix.os != 'ubuntu-latest'
run: mvn --show-version --batch-mode --no-transfer-progress clean verify
-
- - name: Upload to Nexus
+
+ - name: Build with Maven and 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 deploy
+ run: mvn --show-version --batch-mode --errors --no-transfer-progress -DdeployAtEnd=true clean deploy