Skip to content

Commit 6e6665f

Browse files
committed
Update release.yml to use ProductVersion instead of FileVersion for version extraction
1 parent e66b322 commit 6e6665f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
if (Test-Path ${{ env.DLL_PATH }}) {
5353
Write-Output "DLL found: ${{ env.DLL_PATH }}"
54-
$version = (Get-Item ${{ env.DLL_PATH }}).VersionInfo.FileVersion
54+
$version = (Get-Item ${{ env.DLL_PATH }}).VersionInfo.ProductVersion
5555
5656
if ($version) {
5757
Write-Output "Extracted version: $version"
@@ -68,7 +68,7 @@ jobs:
6868

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"
@@ -159,4 +159,4 @@ jobs:
159159
upload_url: ${{ steps.create_release.outputs.upload_url }}
160160
asset_path: ${{ env.DLL_PATH }}
161161
asset_name: ${{ env.DLL_NAME }}
162-
asset_content_type: application/octet-stream
162+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)