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 927125a0c Split into separate jobs
927125a0c is described below

commit 927125a0c71a50dd6b430eb8b51c4c603c8bd361
Author: Serge Huber <[email protected]>
AuthorDate: Mon Apr 11 17:20:36 2022 +0200

    Split into separate jobs
---
 .github/workflows/unomi-ci-docs-deploy.yml | 64 ++++++++++++++++++++----------
 1 file changed, 44 insertions(+), 20 deletions(-)

diff --git a/.github/workflows/unomi-ci-docs-deploy.yml 
b/.github/workflows/unomi-ci-docs-deploy.yml
index f336f6ae4..bc547bd04 100644
--- a/.github/workflows/unomi-ci-docs-deploy.yml
+++ b/.github/workflows/unomi-ci-docs-deploy.yml
@@ -1,33 +1,57 @@
 # 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 deployment
+name: Unomi CI - Documentation and publishing
 
 on:
   push:
     branches: [ master, unomi-1.6.x ]
 
 jobs:
-  docs-and-deploy:
+  generate-docs:
+    name: Generate Javadoc
     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
+      - 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: Generate documentation
+        run: mvn -U -e clean install -DskipTests javadoc:aggregate 
source:aggregate
 
-    - name: Generate documentation
-      run: mvn -U -B -e clean install -DskipTests javadoc:aggregate 
source:aggregate
-
-    - name: Deploying
-      run: mvn deploy -DskipTests
-      env:
-        NEXUS_USER: ${{ secrets.NEXUS_USER }}
-        NEXUS_PW: ${{ secrets.NEXUS_PW }}
+  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
+        env:
+          NEXUS_USER: ${{ secrets.NEXUS_USER }}
+          NEXUS_PW: ${{ secrets.NEXUS_PW }}
 
-    - name: Deploy Docker snapshot image
-      run: mvn clean install -P docker; pushd docker; mvn 
-Ddocker.username=${{ secrets.DOCKERHUB_USER }} -Ddocker.password=${{ 
secrets.DOCKERHUB_TOKEN }} docker:push; popd
+  publish-docker-image:
+    name: Push docker image snapshot
+    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: Building & pushing Docker snapshot image
+        run: mvn clean install -P docker; pushd docker; mvn 
-Ddocker.username=${{ secrets.DOCKERHUB_USER }} -Ddocker.password=${{ 
secrets.DOCKERHUB_TOKEN }} docker:push; popd

Reply via email to