diff --git a/.github/actions/build-greptime-binary/action.yml b/.github/actions/build-greptime-binary/action.yml index eb6af046a825..ecbc05ed385e 100644 --- a/.github/actions/build-greptime-binary/action.yml +++ b/.github/actions/build-greptime-binary/action.yml @@ -54,7 +54,7 @@ runs: PROFILE_TARGET: ${{ inputs.cargo-profile == 'dev' && 'debug' || inputs.cargo-profile }} with: artifacts-dir: ${{ inputs.artifacts-dir }} - target-file: ./target/$PROFILE_TARGET/greptime + target-files: ./target/$PROFILE_TARGET/greptime version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} @@ -72,6 +72,6 @@ runs: if: ${{ inputs.build-android-artifacts == 'true' }} with: artifacts-dir: ${{ inputs.artifacts-dir }} - target-file: ./target/aarch64-linux-android/release/greptime + target-files: ./target/aarch64-linux-android/release/greptime version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} diff --git a/.github/actions/build-macos-artifacts/action.yml b/.github/actions/build-macos-artifacts/action.yml index 7c46574e850a..2caefe1c382e 100644 --- a/.github/actions/build-macos-artifacts/action.yml +++ b/.github/actions/build-macos-artifacts/action.yml @@ -90,5 +90,5 @@ runs: uses: ./.github/actions/upload-artifacts with: artifacts-dir: ${{ inputs.artifacts-dir }} - target-file: target/${{ inputs.arch }}/${{ inputs.cargo-profile }}/greptime + target-files: target/${{ inputs.arch }}/${{ inputs.cargo-profile }}/greptime version: ${{ inputs.version }} diff --git a/.github/actions/build-windows-artifacts/action.yml b/.github/actions/build-windows-artifacts/action.yml index 0d92e1512eb3..e6e02f5a3380 100644 --- a/.github/actions/build-windows-artifacts/action.yml +++ b/.github/actions/build-windows-artifacts/action.yml @@ -76,5 +76,5 @@ runs: uses: ./.github/actions/upload-artifacts with: artifacts-dir: ${{ inputs.artifacts-dir }} - target-file: target/${{ inputs.arch }}/${{ inputs.cargo-profile }}/greptime + target-files: target/${{ inputs.arch }}/${{ inputs.cargo-profile }}/greptime version: ${{ inputs.version }} diff --git a/.github/actions/upload-artifacts/action.yml b/.github/actions/upload-artifacts/action.yml index c0cda8a3fd44..439562bb7f3b 100644 --- a/.github/actions/upload-artifacts/action.yml +++ b/.github/actions/upload-artifacts/action.yml @@ -4,8 +4,8 @@ inputs: artifacts-dir: description: Directory to store artifacts required: true - target-file: - description: The path of the target artifact + target-files: + description: The multiple target files to upload, separated by comma required: false version: description: Version of the artifact @@ -18,12 +18,16 @@ runs: using: composite steps: - name: Create artifacts directory - if: ${{ inputs.target-file != '' }} + if: ${{ inputs.target-files != '' }} working-directory: ${{ inputs.working-dir }} shell: bash run: | - mkdir -p ${{ inputs.artifacts-dir }} && \ - cp ${{ inputs.target-file }} ${{ inputs.artifacts-dir }} + set -e + mkdir -p ${{ inputs.artifacts-dir }} + IFS=',' read -ra FILES <<< "${{ inputs.target-files }}" + for file in "${FILES[@]}"; do + cp "$file" ${{ inputs.artifacts-dir }}/ + done # The compressed artifacts will use the following layout: # greptime-linux-amd64-pyo3-v0.3.0sha256sum