diff --git a/.github/actions/build-greptime-binary/action.yml b/.github/actions/build-greptime-binary/action.yml index 3cd8742d9a..268b76275a 100644 --- a/.github/actions/build-greptime-binary/action.yml +++ b/.github/actions/build-greptime-binary/action.yml @@ -40,9 +40,11 @@ runs: - name: Upload artifacts uses: ./.github/actions/upload-artifacts if: ${{ inputs.build-android-artifacts == 'false' }} + env: + PROFILE_TARGET: ${{ inputs.cargo-profile == 'dev' && 'debug' || inputs.cargo-profile }} with: artifacts-dir: ${{ inputs.artifacts-dir }} - target-file: ./target/${{ inputs.cargo-profile }}/greptime + target-file: ./target/$PROFILE_TARGET/greptime version: ${{ inputs.version }} working-dir: ${{ inputs.working-dir }} diff --git a/.github/actions/upload-artifacts/action.yml b/.github/actions/upload-artifacts/action.yml index 5c84619bf1..4322fe7c0d 100644 --- a/.github/actions/upload-artifacts/action.yml +++ b/.github/actions/upload-artifacts/action.yml @@ -22,7 +22,7 @@ runs: shell: bash run: | mkdir -p ${{ inputs.artifacts-dir }} && \ - mv ${{ inputs.target-file }} ${{ inputs.artifacts-dir }} + cp ${{ inputs.target-file }} ${{ inputs.artifacts-dir }} # The compressed artifacts will use the following layout: # greptime-linux-amd64-pyo3-v0.3.0sha256sum