File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,17 @@ jobs:
2121 with :
2222 dotnet-version : ' 9.0.x' # 安装 .NET 9.0 SDK
2323
24- - name : Clear NuGet cache
25- run : dotnet nuget locals all --clear # 清理本地 NuGet 缓存
26-
2724 - name : Restore dependencies
2825 run : dotnet restore # 恢复 NuGet 依赖项
2926
3027 - name : Build project
3128 run : dotnet build --configuration Release # 编译项目
3229
3330 - name : Publish project to root directory
34- run : dotnet publish --configuration Release --output ${{ github.workspace }} # 输出到仓库根目录
31+ run : dotnet publish --configuration Release --output ${{ github.workspace }} # 发布项目到仓库根目录
3532
3633 - name : List root directory (用于调试)
37- run : dir ${{ github.workspace }} # 列出根目录中的文件,用于调试
34+ run : dir ${{ github.workspace }} # 列出根目录中的文件,用于调试,确认发布文件是否存在
3835
3936 - name : Upload build artifacts
4037 uses : actions/upload-artifact@v2 # 上传构建文件到 GitHub Actions
You can’t perform that action at this time.
0 commit comments