Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Fix upload-artifacts doesn't include hidden files #5112

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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