Browse Source

Merge pull request #339 from shangfengh/new

ci: 💚 fix CI
tags/0.1.0
Timothy Liu GitHub 3 years ago
parent
commit
3bbfc12557
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 19 deletions
  1. +19
    -19
      .github/workflows/upload_COS.yml

+ 19
- 19
.github/workflows/upload_COS.yml View File

@@ -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


Loading…
Cancel
Save