Skip to content

Commit

Permalink
fix: renaming of files
Browse files Browse the repository at this point in the history
  • Loading branch information
0PandaDEV committed Nov 24, 2024
1 parent ff50813 commit 89b67f2
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,32 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ${{ matrix.args }}

- name: List Bundle Directory
shell: pwsh
run: |
$bundlePath = "src-tauri/target/release/bundle/msi"
if (Test-Path $bundlePath) {
Write-Output "Contents of $bundlePath:"
Get-ChildItem -Path $bundlePath
} else {
Write-Output "Path $bundlePath does not exist."
}
- name: Rename Windows Artifacts
shell: pwsh
run: |
mv src-tauri/target/release/bundle/msi/*.msi src-tauri/target/release/bundle/msi/Qopy-${{ needs.prepare.outputs.version }}_${{ matrix.arch }}.msi
$bundlePath = "src-tauri/target/release/bundle/msi"
$version = "${{ needs.prepare.outputs.version }}"
$arch = "${{ matrix.arch }}"
if (Test-Path $bundlePath) {
$msiFiles = Get-ChildItem -Path "$bundlePath/*.msi"
foreach ($file in $msiFiles) {
$newName = "Qopy-$version`_$arch.msi"
Rename-Item -Path $file.FullName -NewName $newName
}
} else {
Write-Error "Path $bundlePath does not exist."
exit 1
}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 89b67f2

Please sign in to comment.