Skip to content

Commit 906be81

Browse files
committed
简化发布命令的项目路径
在 `release.yml` 文件中,将 `dotnet publish` 命令的项目文件路径从 `./Html-Converter/Html-Converter.csproj` 修改为 `./Html-Converter.csproj`,去掉了多余的目录层级。
1 parent 7a1ca2e commit 906be81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
# 步骤 3: 发布应用程序 (依赖框架并极限压缩体积)
3131
- name: Publish application
32-
run: dotnet publish ./Html-Converter/Html-Converter.csproj -c Release -r ${{ matrix.os == 'windows-latest' && 'win-x64' || (matrix.os == 'ubuntu-latest' && 'linux-x64' || 'osx-x64') }} --self-contained false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:InvariantGlobalization=true
32+
run: dotnet publish ./Html-Converter.csproj -c Release -r ${{ matrix.os == 'windows-latest' && 'win-x64' || (matrix.os == 'ubuntu-latest' && 'linux-x64' || 'osx-x64') }} --self-contained false -p:PublishSingleFile=true -p:PublishTrimmed=true -p:InvariantGlobalization=true
3333

3434
# 步骤 4: 打包生成物
3535
- name: Package artifacts

0 commit comments

Comments
 (0)