Skip to content

Commit e94c98d

Browse files
committed
fix(ci): 修复 Windows 构建清理命令语法问题
- 将 rm -rf 改为 PowerShell 兼容的 Remove-Item 命令 - 解决 Windows PowerShell 不支持 bash 语法的错误
1 parent db7ac96 commit e94c98d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/desktop-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ jobs:
169169
- name: Clean Build Directories for Windows
170170
if: contains(matrix.config.goos, 'windows')
171171
run: |
172-
rm -rf app/build
173-
rm -rf app/kernel
172+
Remove-Item -Recurse -Force app/build -ErrorAction SilentlyContinue
173+
Remove-Item -Recurse -Force app/kernel -ErrorAction SilentlyContinue
174174
working-directory: ${{ github.workspace }}/repo/siyuan
175175

176176
- name: Building Kernel

0 commit comments

Comments
 (0)