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

veithen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git


The following commit(s) were added to refs/heads/master by this push:
     new cd5e88d8d1 Make Github Actions build the Maven site
cd5e88d8d1 is described below

commit cd5e88d8d16c3cfd0232a941a70da6d1248be19a
Author: Andreas Veithen <andreas.veit...@gmail.com>
AuthorDate: Sun Sep 15 09:34:25 2024 +0100

    Make Github Actions build the Maven site
---
 .github/workflows/ci.yml | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8e30cd913d..f001b52e03 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -51,11 +51,36 @@ jobs:
       run: mvn -B -e -Papache-release -Dgpg.skip=true verify
     - name: Remove Snapshots
       run: find ~/.m2/repository -name '*-SNAPSHOT' -a -type d -print0 | xargs 
-0 rm -rf
+  site:
+    name: Site
+    runs-on: ubuntu-22.04
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v4
+    - name: Cache Maven Repository
+      uses: actions/cache@v4
+      with:
+        path: ~/.m2/repository
+        key: maven-site-${{ hashFiles('**/pom.xml') }}
+        restore-keys: |
+          maven-site-
+          maven-
+    - name: Set up Java
+      uses: actions/setup-java@v4
+      with:
+        distribution: 'zulu'
+        java-version: 17
+    - name: Build
+      run: mvn -B -e -Dmaven.test.skip=true package site-deploy
+    - name: Remove Snapshots
+      run: find ~/.m2/repository -name '*-SNAPSHOT' -a -type d -print0 | xargs 
-0 rm -rf
   deploy:
     if: github.event_name == 'push' && github.ref == 'refs/heads/master' && 
github.repository == 'apache/axis-axis2-java-core'
     name: Deploy
     runs-on: ubuntu-22.04
-    needs: build
+    needs:
+      - build
+      - site
     steps:
     - name: Checkout
       uses: actions/checkout@v4

Reply via email to