Skip to content

Commit 04476dd

Browse files
committed
fix(ci): 添加缺失的 Build 步骤
dotnet pack 需要先执行 dotnet build,否则会因找不到程序集而失败。
1 parent 22e4a4d commit 04476dd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ jobs:
8888
env:
8989
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9090

91+
- name: Build
92+
if: steps.check.outputs.need_release == 'true'
93+
run: dotnet build --configuration Release
94+
9195
- name: Pack NuGet packages
9296
if: steps.check.outputs.need_release == 'true'
93-
run: dotnet pack --configuration Release --output ./artifacts
97+
run: dotnet pack --configuration Release --no-build --output ./artifacts
9498

9599
- name: Publish to NuGet
96100
if: steps.check.outputs.need_release == 'true'

0 commit comments

Comments
 (0)