Browse Source

Merge pull request #336 from shangfengh/new

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

+ 13
- 25
.github/workflows/upload_COS.yml View File

@@ -29,18 +29,22 @@ jobs:
- name: Pip Install paramiko
run: pip install paramiko

# mkdir -p THUAI6\linux\linux64
# mkdir -p THUAI6\linux\linux64\Debug
# 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: Publish
run: |
mkdir -p THUAI6\win\win64
mkdir -p THUAI6\linux\linux64
mkdir -p THUAI6\win\win64
mkdir -p THUAI6\win\win64\Debug
mkdir -p THUAI6\linux\linux64\Debug
dotnet publish ".\logic\Server\Server.csproj" -c Release -r linux-x64 -o .\THUAI6\win\win64 --self-contained true
dotnet publish ".\logic\Server\Server.csproj" -c Release -r win-x64 -o .\THUAI6\linux\linux64 --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 Debug -r linux-x64 -o .\THUAI6\linux\linux64\Debug --self-contained true
dotnet publish ".\logic\Client\Client.csproj" -c Release -r win-x64 -o .\THUAI6\win\win64 --self-contained true
# cp -r .\THUAI6\win\CAPI .\THUAI6\linux\

- name: Copy CAPI
run: |
mkdir -p THUAI6\win\CAPI\proto
@@ -50,28 +54,12 @@ jobs:
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\
# cp -r .\CAPI\shell\* .\THUAI6\linux\

- name: Copy shell
run: |
cp -r .\CAPI\cmd\* .\THUAI6\win\
cp -r .\CAPI\shell\* .\THUAI6\linux\
- name: Copy Markdown
run: |
mkdir -p .\Md\
cp .\CAPI\CAPI接口(cpp).md .\Md\
cp .\CAPI\CAPI接口(python).md .\Md\
cp .\CAPI\Tool_tutorial.md .\Md\
cp .\QandA.md .\Md\
cp .\使用文档.md .\Md\
cp .\logic\GameRules.md .\Md\

- name: Create PDF
uses: mkrakowitzer/actions-makepdfs@v1.3
with:
markdown_dir: ./Md
output_dir: ./THUAI6/

- name: Tencent Cloud COS Action
uses: TencentCloud/cos-action@v1
@@ -82,4 +70,4 @@ jobs:
cos_region: ${{ secrets.COS_REGION }}
local_path: .\THUAI6
remote_path: THUAI6
clean: true
clean: true

Loading…
Cancel
Save