@@ -54,11 +54,13 @@ jobs:
5454 - name : Rename Standard Package
5555 shell : pwsh
5656 run : |
57+ $version = "${{ github.event.release.tag_name }}"
5758 Set-Location build-standard
5859 Get-ChildItem -Filter *.zip | ForEach-Object {
59- Rename-Item $_.FullName "EDVoice-Standard-${{env.BUILD_TYPE}}.zip"
60+ $newName = "EDVoice-Standard-$version.zip"
61+ Rename-Item $_.FullName $newName
62+ Write-Host "Renamed to $newName"
6063 }
61-
6264 # --- MEDICORP BUILD ---
6365 - name : Configure CMake (MediCorp)
6466 run : cmake -B ${{github.workspace}}/build-medicorp -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_MEDICORP=ON
7779 - name : Rename MediCorp Package
7880 shell : pwsh
7981 run : |
82+ $version = "${{ github.event.release.tag_name }}"
8083 Set-Location build-medicorp
8184 Get-ChildItem -Filter *.zip | ForEach-Object {
82- Rename-Item $_.FullName "EDVoice-MediCorp-${{env.BUILD_TYPE}}.zip"
85+ $newName = "EDVoice-MediCorp-$version.zip"
86+ Rename-Item $_.FullName $newName
87+ Write-Host "Renamed to $newName"
8388 }
8489
8590 # --- UPLOAD TO RELEASE ---
8893 uses : softprops/action-gh-release@v2
8994 with :
9095 files : |
91- ${{github.workspace}}/build-standard/EDVoice-Standard-${{env.BUILD_TYPE }}.zip
92- ${{github.workspace}}/build-medicorp/EDVoice-MediCorp-${{env.BUILD_TYPE }}.zip
96+ ${{github.workspace}}/build-standard/EDVoice-Standard-${{ github.event.release.tag_name }}.zip
97+ ${{github.workspace}}/build-medicorp/EDVoice-MediCorp-${{ github.event.release.tag_name }}.zip
9398 env :
9499 GITHUB_TOKEN : ${{ secrets.ACTION_UPDATE_RELEASE }}
0 commit comments