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 @@ -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
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
You can’t perform that action at this time.
0 commit comments