| @@ -29,35 +29,35 @@ jobs: | |||||
| run: pip install paramiko | 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 | - name: Publish | ||||
| run: | | 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 | - name: Copy CAPI | ||||
| run: | | 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 | - name: Copy shell | ||||
| run: | | 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 | - name: Upload COS | ||||
| uses: zkqiang/tencent-cos-action@v0.1.0 | uses: zkqiang/tencent-cos-action@v0.1.0 | ||||