From f34e2cdc3aa1b5222cc66e2be157b7e4a16e8f28 Mon Sep 17 00:00:00 2001 From: Ruben Date: Wed, 25 Sep 2024 22:46:35 +0200 Subject: [PATCH] Update WinX64.yml --- .github/workflows/WinX64.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/WinX64.yml b/.github/workflows/WinX64.yml index 26c9968f..4f40ec79 100644 --- a/.github/workflows/WinX64.yml +++ b/.github/workflows/WinX64.yml @@ -23,15 +23,11 @@ jobs: with: dotnet-version: '9.x' - # Step 3: Extract AssemblyVersion from the project file - - name: Extract AssemblyVersion - id: version - run: | - $projectPath = ".\src\PicView.Avalonia.Win32\PicView.Avalonia.Win32.csproj" - $projectFile = [xml](Get-Content $projectPath) - $assemblyVersion = $projectFile.Project.PropertyGroup.AssemblyVersion - echo "##[set-output name=version;]$assemblyVersion" - shell: pwsh + # Step 3: Get version from the project file + - name: Get version from the project file + id: get-version + with: + proj-path: .\src\PicView.Avalonia.Win32\PicView.Avalonia.Win32.csproj # Step 4: Define paths - name: Define paths