Skip to content

Commit

Permalink
Update WinX64.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 authored Sep 25, 2024
1 parent 00ee332 commit f34e2cd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/WinX64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f34e2cd

Please sign in to comment.