Skip to content

Commit c8d9c70

Browse files
committed
publish 目前存在一个bug,无法开机启动
1 parent f0ec4c6 commit c8d9c70

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,14 @@ jobs:
2424
- name: Build
2525
run: dotnet build --no-restore -c release
2626

27-
- name: Publish
28-
run: dotnet publish -c Release -r win-x64 -p:PublishReadyToRun=true --self-contained false
29-
3027
- name: Get version
3128
uses: olegtarasov/get-tag@v2.1
3229
id: tagName
3330

3431
- name: Create zip
3532
shell: pwsh
3633
# 配置【编译后的文件地址】
37-
run: Compress-Archive -Path ${{github.workspace}}\src\bin\Release\net7.0-windows\win-x64\publish\* -DestinationPath ${{github.workspace}}\src\bin\Release\ComputerLock_${{ steps.tagName.outputs.tag }}_win_x64.zip
34+
run: Compress-Archive -Path ${{github.workspace}}\src\bin\Release\net7.0-windows\* -DestinationPath ${{github.workspace}}\src\bin\Release\ComputerLock_${{ steps.tagName.outputs.tag }}.zip
3835

3936
- name: Release
4037
uses: softprops/action-gh-release@v0.1.13
@@ -44,4 +41,4 @@ jobs:
4441
body: |
4542
Release为自动生成,具体内容请查看提交日志,或直接查看[README](https://github.com/JiuLing-zhang/ComputerLock#readme)
4643
# 配置【zip文件地址】
47-
files: ${{github.workspace}}\src\bin\Release\ComputerLock_${{ steps.tagName.outputs.tag }}_win_x64.zip
44+
files: ${{github.workspace}}\src\bin\Release\ComputerLock_${{ steps.tagName.outputs.tag }}.zip

0 commit comments

Comments
 (0)