Skip to content

Commit

Permalink
Update nuget_push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cristipufu committed Jun 1, 2024
1 parent c426b35 commit 96c602f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nuget_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
- name: Extract Version from csproj
id: get_version
run: |
version=$(grep '<Version>' ./src/Aptabase.Maui.csproj | sed -n 's/.*<Version>\(.*\)<\/Version>.*/\1/p')
echo "PackageVersion=$version" >> $GITHUB_ENV
$version = Select-String -Path "./src/Aptabase.Maui.csproj" -Pattern '<Version>(.*)</Version>' | ForEach-Object { $_.Matches.Groups[1].Value }
echo "PackageVersion=$version" | Out-File -Append -FilePath $env:GITHUB_ENV
shell: powershell

- name: Build and Publish
run: |
Expand Down

0 comments on commit 96c602f

Please sign in to comment.