Skip to content

Commit b28015c

Browse files
committed
refractor: Standardize artifact naming in desktop build workflow
1 parent 358611b commit b28015c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-desktop.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ jobs:
6969
7070
- name: Rename Windows MSI
7171
if: matrix.format == 'windows'
72+
shell: pwsh
7273
run: |
73-
FILE=$(find composeApp/build/compose/binaries -name "*.msi" -type f)
74-
NEW="DevAnalyzer-${{ github.ref_name }}-windows-x64.msi"
75-
mv "$FILE" "$(dirname "$FILE")/$NEW"
74+
$file = Get-ChildItem -Recurse -Filter *.msi -Path "composeApp/build/compose/binaries" | Select-Object -First 1
75+
$newName = "DevAnalyzer-${{ github.ref_name }}-windows-x64.msi"
76+
Rename-Item -Path $file.FullName -NewName $newName
7677
7778
- name: Rename Linux DEB
7879
if: matrix.format == 'linux'

0 commit comments

Comments
 (0)