From 9bd8c1028322444f5d13d162969e32e6c1409d4b Mon Sep 17 00:00:00 2001 From: shangfengh <3495281661@qq.com> Date: Thu, 20 Apr 2023 18:16:01 +0800 Subject: [PATCH] ci: :green_heart: fix CI --- .github/workflows/upload_COS.yml | 38 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/upload_COS.yml b/.github/workflows/upload_COS.yml index 135d1e8..8147e83 100644 --- a/.github/workflows/upload_COS.yml +++ b/.github/workflows/upload_COS.yml @@ -29,35 +29,35 @@ jobs: run: pip install paramiko # - # dotnet publish ".\logic\Client\Client.csproj" -c Release -r win-x64 -o .\THUAI6\win\win64 --self-contained true + # dotnet publish "./logic/Client/Client.csproj" -c Release -r win-x64 -o ./THUAI6/win/win64 --self-contained true - name: Publish run: | - mkdir -p THUAI6\win\win64 - mkdir -p THUAI6\win\win64\Debug - mkdir -p THUAI6\linux\linux64 - mkdir -p THUAI6\linux\linux64\Debug + mkdir -p THUAI6/win/win64 + mkdir -p THUAI6/win/win64/Debug + mkdir -p THUAI6/linux/linux64 + mkdir -p THUAI6/linux/linux64/Debug - dotnet publish ".\logic\Server\Server.csproj" -c Release -r win-x64 -o .\THUAI6\win\win64 --self-contained true - dotnet publish ".\logic\Server\Server.csproj" -c Debug -r win-x64 -o .\THUAI6\win\win64\Debug --self-contained true - dotnet publish ".\logic\Server\Server.csproj" -c Release -r linux-x64 -o .\THUAI6\linux\linux64 --self-contained true - dotnet publish ".\logic\Server\Server.csproj" -c Debug -r linux-x64 -o .\THUAI6\linux\linux64\Debug --self-contained true + dotnet publish "./logic/Server/Server.csproj" -c Release -r win-x64 -o ./THUAI6/win/win64 --self-contained true + dotnet publish "./logic/Server/Server.csproj" -c Debug -r win-x64 -o ./THUAI6/win/win64/Debug --self-contained true + dotnet publish "./logic/Server/Server.csproj" -c Release -r linux-x64 -o ./THUAI6/linux/linux64 --self-contained true + dotnet publish "./logic/Server/Server.csproj" -c Debug -r linux-x64 -o ./THUAI6/linux/linux64/Debug --self-contained true - name: Copy CAPI run: | - mkdir -p THUAI6\win\CAPI\proto - cp .\dependency\proto\Message2Clients.proto .\THUAI6\win\CAPI\proto\ - cp .\dependency\proto\Message2Server.proto .\THUAI6\win\CAPI\proto\ - cp .\dependency\proto\Services.proto .\THUAI6\win\CAPI\proto\ - cp .\dependency\proto\MessageType.proto .\THUAI6\win\CAPI\proto\ - cp -r .\CAPI\cpp .\THUAI6\win\CAPI\ - cp -r .\CAPI\python .\THUAI6\win\CAPI\ - cp -r .\THUAI6\win\CAPI .\THUAI6\linux\ + mkdir -p THUAI6/win/CAPI/proto + cp ./dependency/proto/Message2Clients.proto ./THUAI6/win/CAPI/proto/ + cp ./dependency/proto/Message2Server.proto ./THUAI6/win/CAPI/proto/ + cp ./dependency/proto/Services.proto ./THUAI6/win/CAPI/proto/ + cp ./dependency/proto/MessageType.proto ./THUAI6/win/CAPI/proto/ + cp -r ./CAPI/cpp ./THUAI6/win/CAPI/ + cp -r ./CAPI/python ./THUAI6/win/CAPI/ + cp -r ./THUAI6/win/CAPI ./THUAI6/linux/ - name: Copy shell run: | - cp -r .\CAPI\cmd\* .\THUAI6\win\ - cp -r .\CAPI\shell\* .\THUAI6\linux\ + cp -r ./CAPI/cmd/* ./THUAI6/win/ + cp -r ./CAPI/shell/* ./THUAI6/linux/ - name: Upload COS uses: zkqiang/tencent-cos-action@v0.1.0