From 7fecf6c9e9a93261445b20f2ac1949f3c8c7b37b Mon Sep 17 00:00:00 2001 From: xiaoyekanren <876670773@qq.com> Date: Thu, 17 Aug 2023 15:41:36 +0800 Subject: [PATCH] tmp_upload_target_of_client_cpp v2 --- .../upload_target_from_rel12_on_windows.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/upload_target_from_rel12_on_windows.yml b/.github/workflows/upload_target_from_rel12_on_windows.yml index 26a4f1c..35207ec 100644 --- a/.github/workflows/upload_target_from_rel12_on_windows.yml +++ b/.github/workflows/upload_target_from_rel12_on_windows.yml @@ -80,15 +80,6 @@ jobs: echo "boost_library_dir=${{ github.workspace }}\boost_1_78_0\boost_1_78_0\stage\lib" >> "$GITHUB_OUTPUT" # echo "cmake_url=https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-windows-x86_64.zip" >> "$GITHUB_OUTPUT" - - if [ "${{ matrix.java_version }}" = "8" ]; then - echo "upload_url=${{ needs.create-release-java8.outputs.upload_url }}" >> "$GITHUB_OUTPUT" - elif [ "${{ matrix.java_version }}" = "11" ]; then - echo "upload_url=${{ needs.create-release-java11.outputs.upload_url }}" >> "$GITHUB_OUTPUT" - else - echo "Found unknown jdk version. exit." - exit 1 - fi if [ "${{ matrix.iotdb_version }}" = "master" ]; then echo "server_dir=iotdb-core/datanode" >> "$GITHUB_OUTPUT" @@ -117,12 +108,12 @@ jobs: 7z a client-cpp-target.zip target # upload client-cpp - - name: apache-iotdb-client-cpp-x86_64-${{ matrix.os }}-${{ steps.iotdb-info.outputs.branch }}-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}.zip + - name: Upload client-cpp-target.zip uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.iotdb-info.outputs.upload_url }} + upload_url: ${{ needs.create-release.outputs.upload_url }} asset_path: ${{ github.workspace }}/iotdb/${{ steps.iotdb-info.outputs.cpp_dir }}/client-cpp-target.zip asset_name: client-cpp-target.zip asset_content_type: application/zip @@ -135,12 +126,12 @@ jobs: 7z a client-cpp-example-target.zip target # # upload client-cpp-example - - name: Upload apache-iotdb-client-cpp-example-x86_64-${{ matrix.os }}-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.matrix_version }}-${{ steps.iotdb-info.outputs.commit }}.zip using ${{ matrix.java_version }} + - name: Upload client-cpp-example-target.zip uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.iotdb-info.outputs.upload_url }} + upload_url: ${{ needs.create-release.outputs.upload_url }} asset_path: ${{ github.workspace }}/iotdb/example/client-cpp-example/client-cpp-example-target.zip asset_name: client-cpp-example-target.zip asset_content_type: application/zip