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

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 2d7fa083f0 ci: Fix upload-artifacts doesn't include hidden files 
(#5112)
2d7fa083f0 is described below

commit 2d7fa083f0276c6f1005cc59b5995761b74aca3b
Author: Xuanwo <[email protected]>
AuthorDate: Wed Sep 11 19:48:00 2024 +0800

    ci: Fix upload-artifacts doesn't include hidden files (#5112)
    
    Signed-off-by: Xuanwo <[email protected]>
---
 .github/workflows/release_java.yml | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/release_java.yml 
b/.github/workflows/release_java.yml
index 81f684b775..253412a7bd 100644
--- a/.github/workflows/release_java.yml
+++ b/.github/workflows/release_java.yml
@@ -22,7 +22,7 @@ on:
     tags:
       # Staging JARs on Apache Nexus repository for RCs. Read more on
       # 
https://opendal.apache.org/community/committers/release/#release-maven-artifacts
-      - 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
+      - "v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+"
   pull_request:
     branches:
       - main
@@ -52,9 +52,9 @@ jobs:
       - name: Set up JDK 8
         uses: actions/setup-java@v4
         with:
-          distribution: 'zulu'
-          java-version: '8'
-          cache: 'maven'
+          distribution: "zulu"
+          java-version: "8"
+          cache: "maven"
           server-id: apache.releases.https
           server-username: MAVEN_USERNAME
           server-password: MAVEN_CENTRAL_TOKEN
@@ -62,7 +62,7 @@ jobs:
           gpg-passphrase: MAVEN_GPG_PASSPHRASE
       - uses: actions/setup-python@v5
         with:
-          python-version: '3.11'
+          python-version: "3.11"
       - name: Install Protoc
         uses: arduino/setup-protoc@v3
         with:
@@ -100,15 +100,16 @@ jobs:
           MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_STAGE_DEPLOYER_PW }}
           MAVEN_GPG_PASSPHRASE: ""
       - name: Upload local staging directory
-        uses: actions/upload-artifact@v3
+        uses: actions/upload-artifact@v4
         with:
           name: ${{ matrix.classifier }}-local-staging
           path: bindings/java/local-staging
           if-no-files-found: error
+          include-hidden-files: true
 
   deploy-staged-snapshots:
     runs-on: ubuntu-latest
-    needs: [ stage-snapshot ]
+    needs: [stage-snapshot]
     steps:
       - uses: actions/checkout@v4
         with:
@@ -117,9 +118,9 @@ jobs:
       - name: Set up JDK 8
         uses: actions/setup-java@v4
         with:
-          distribution: 'zulu'
-          java-version: '8'
-          cache: 'maven'
+          distribution: "zulu"
+          java-version: "8"
+          cache: "maven"
           server-id: apache.releases.https
           server-username: MAVEN_USERNAME
           server-password: MAVEN_CENTRAL_TOKEN
@@ -130,27 +131,27 @@ jobs:
         run: echo "LOCAL_STAGING_DIR=$HOME/local-staging" >> $GITHUB_ENV
 
       - name: Download windows staging directory
-        uses: actions/download-artifact@v3
+        uses: actions/download-artifact@v4
         with:
           name: windows-x86_64-local-staging
           path: ~/windows-x86_64-local-staging
       - name: Download linux x86_64 staging directory
-        uses: actions/download-artifact@v3
+        uses: actions/download-artifact@v4
         with:
           name: linux-x86_64-local-staging
           path: ~/linux-x86_64-local-staging
       - name: Download linux aarch_64 staging directory
-        uses: actions/download-artifact@v3
+        uses: actions/download-artifact@v4
         with:
           name: linux-aarch_64-local-staging
           path: ~/linux-aarch_64-local-staging
       - name: Download darwin staging directory
-        uses: actions/download-artifact@v3
+        uses: actions/download-artifact@v4
         with:
           name: osx-x86_64-local-staging
           path: ~/osx-x86_64-local-staging
       - name: Download darwin (aarch64) staging directory
-        uses: actions/download-artifact@v3
+        uses: actions/download-artifact@v4
         with:
           name: osx-aarch_64-local-staging
           path: ~/osx-aarch_64-local-staging

Reply via email to