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

shuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/master by this push:
     new 2797f7d4b Optimize jobs a little
2797f7d4b is described below

commit 2797f7d4b379f8290476cb3cc4b8bcb06fa1980f
Author: Serge Huber <[email protected]>
AuthorDate: Mon Apr 11 17:33:17 2022 +0200

    Optimize jobs a little
---
 .github/workflows/unomi-ci-docs-deploy.yml | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/unomi-ci-docs-deploy.yml 
b/.github/workflows/unomi-ci-docs-deploy.yml
index bc547bd04..1af94e6a9 100644
--- a/.github/workflows/unomi-ci-docs-deploy.yml
+++ b/.github/workflows/unomi-ci-docs-deploy.yml
@@ -1,15 +1,15 @@
 # This workflow will build a Java project with Maven
 # For more information see: 
https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
 
-name: Unomi CI - Documentation and publishing
+name: Publish Javadoc and snapshots
 
 on:
   push:
     branches: [ master, unomi-1.6.x ]
 
 jobs:
-  generate-docs:
-    name: Generate Javadoc
+  publish-docs-and-snapshots:
+    name: Publish Javadoc and snapshots
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
@@ -22,27 +22,14 @@ jobs:
           server-password: NEXUS_PW
       - name: Generate documentation
         run: mvn -U -e clean install -DskipTests javadoc:aggregate 
source:aggregate
-
-  publish-snapshots:
-    name: Publish snapshots
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - name: Set up JDK 1.8
-        uses: actions/setup-java@v1
-        with:
-          java-version: 1.8
-          server-id: apache.snapshots.https
-          server-username: NEXUS_USER
-          server-password: NEXUS_PW
       - name: Build & deploy snapshots
-        run: mvn clean install deploy -DskipTests
+        run: mvn deploy -DskipTests
         env:
           NEXUS_USER: ${{ secrets.NEXUS_USER }}
           NEXUS_PW: ${{ secrets.NEXUS_PW }}
 
   publish-docker-image:
-    name: Push docker image snapshot
+    name: Push Docker image snapshot
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2

Reply via email to