Skip to content

Commit c5f1f6d

Browse files
Fix renaming of exe
1 parent f060682 commit c5f1f6d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,16 @@ jobs:
7373
$dst = "artifacts/single-exe/CleanMyPosts-standalone.exe"
7474
7575
if (-Not (Test-Path $src)) {
76-
Write-Error "File $src not found!"
76+
Write-Error "Source file not found: $src"
7777
exit 1
7878
}
79+
7980
if (Test-Path $dst) {
8081
Remove-Item $dst -Force
8182
}
82-
Rename-Item -Path $src -NewName $dst
83+
84+
$destFileName = [System.IO.Path]::GetFileName($dst)
85+
Rename-Item -Path $src -NewName $destFileName
8386
8487
- name: Build Setup EXE
8588
run: |

0 commit comments

Comments
 (0)