Skip to content

Commit be9f34e

Browse files
committed
Updated release.yml to extract ProductVersion instead of FileVersion for improved version accuracy
1 parent ba8b350 commit be9f34e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
if (Test-Path ${{ env.DLL_PATH }}) {
5252
Write-Output "DLL found: ${{ env.DLL_PATH }}"
53-
$version = (Get-Item ${{ env.DLL_PATH }}).VersionInfo.FileVersion
53+
$version = (Get-Item ${{ env.DLL_PATH }}).VersionInfo.ProductVersion
5454
5555
if ($version) {
5656
Write-Output "Extracted version: $version"
@@ -68,7 +68,7 @@ jobs:
6868
if (![string]::IsNullOrEmpty("${{ env.LIBRARY_PATH }}")) {
6969
if (Test-Path ${{ env.LIBRARY_PATH }}) {
7070
Write-Output "Library DLL found: ${{ env.LIBRARY_PATH }}"
71-
$libraryVersion = (Get-Item ${{ env.LIBRARY_PATH }}).VersionInfo.FileVersion
71+
$libraryVersion = (Get-Item ${{ env.LIBRARY_PATH }}).VersionInfo.ProductVersion
7272

7373
if ($libraryVersion) {
7474
Write-Output "Extracted library version: $libraryVersion"
@@ -190,4 +190,4 @@ jobs:
190190
upload_url: ${{ steps.create_release.outputs.upload_url }}
191191
asset_path: ./TLibrary/bin/Release/net48/NewLibraries.zip
192192
asset_name: Libraries.zip
193-
asset_content_type: application/zip
193+
asset_content_type: application/zip

0 commit comments

Comments
 (0)