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

pan3793 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 4bbf9eebc4a HADOOP-19887. Improve GHA website workflow (#8482)
4bbf9eebc4a is described below

commit 4bbf9eebc4abd0132667639597ca5db3d5b82f35
Author: Cheng Pan <[email protected]>
AuthorDate: Fri May 8 13:24:39 2026 +0800

    HADOOP-19887. Improve GHA website workflow (#8482)
    
    Reviewed-by: Shilun Fan <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
---
 .github/workflows/website.yml | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml
index eef5ae671ba..d60061445f3 100644
--- a/.github/workflows/website.yml
+++ b/.github/workflows/website.yml
@@ -26,31 +26,24 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout Hadoop trunk
-        uses: actions/checkout@v3
-        with:
-          repository: apache/hadoop
+        uses: actions/checkout@v6
       - name: Set up JDK 17
         uses: actions/setup-java@v5
         with:
           java-version: '17'
           distribution: 'temurin'
-      - name: Cache local Maven repository
-        uses: actions/cache@v3
-        with:
-          path: ~/.m2/repository
-          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-          restore-keys: |
-            ${{ runner.os }}-maven-
+          cache: 'maven'
+          check-latest: false
       - name: Build Hadoop maven plugins
-        run: cd hadoop-maven-plugins && mvn --batch-mode install
+        run: ./mvnw --batch-mode -f hadoop-maven-plugins/pom.xml install
       - name: Build Hadoop
-        run: mvn clean install -DskipTests -DskipShade
+        run: ./mvnw --batch-mode clean install -DskipTests -DskipShade
       - name: Build document
-        run: mvn clean site
+        run: ./mvnw --batch-mode clean site
       - name: Stage document
-        run: mvn site:stage -DstagingDirectory=${GITHUB_WORKSPACE}/staging/
+        run: ./mvnw --batch-mode site:stage 
-DstagingDirectory=${GITHUB_WORKSPACE}/staging/
       - name: Deploy to GitHub Pages
-        uses: peaceiris/actions-gh-pages@v3
+        uses: peaceiris/actions-gh-pages@v4
         with:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_dir: ./staging/hadoop-project


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to