Skip to content

Commit a474387

Browse files
committed
ci: 在 CI 工作流中创建本地 artifacts 目录
在 dotnet-pack 和 nuget-publish 工作流中添加步骤,确保构建前 `.\dotnet\artifacts` 目录存在。这可以防止因目标目录不存在而导致的潜在构建或发布错误。
1 parent 1a8fd20 commit a474387

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/dotnet-pack.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
- uses: actions/setup-dotnet@v4
1818
with:
1919
dotnet-version: "10.0.x"
20+
- name: Prepare local artifacts source
21+
shell: pwsh
22+
run: New-Item -ItemType Directory -Force -Path .\dotnet\artifacts | Out-Null
2023
- name: Restore
2124
run: dotnet restore .\dotnet\DeepSeek.OCR2.sln
2225
- name: Build

.github/workflows/nuget-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- uses: actions/setup-dotnet@v4
1717
with:
1818
dotnet-version: "10.0.x"
19+
- name: Prepare local artifacts source
20+
shell: pwsh
21+
run: New-Item -ItemType Directory -Force -Path .\dotnet\artifacts | Out-Null
1922
- name: Restore
2023
run: dotnet restore .\dotnet\DeepSeek.OCR2.sln
2124
- name: Build

0 commit comments

Comments
 (0)