Skip to content

Commit

Permalink
ci: Fix upload-artifacts doesn't include hidden files (#5112)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo authored Sep 11, 2024
1 parent 816f126 commit 2d7fa08
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/release_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -52,17 +52,17 @@ 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
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2d7fa08

Please sign in to comment.