From 3b2abddb176f72d7a452fb27a994cdb336469042 Mon Sep 17 00:00:00 2001 From: prasenjeetnath <147582543+prasenjeetnath@users.noreply.github.com> Date: Fri, 17 Nov 2023 19:06:18 +0530 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68cd265..f0c66b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,7 +81,7 @@ jobs: $sourceFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "net*" $outFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "sourcegrid" New-Item -ItemType Directory -Force -Path $outFolder - $fileName = "sourcegrid-v$($env:GitVersion_MajorMinor).zip" + $fileName = "sourcegrid-v$($env:GitVersion_MajorMinorPatch).zip" Write-Host "Filename: '$fileName'" Write-Host "sourceFolder: '$sourceFolder'" Write-Host "Outfolder: '$outFolder'" @@ -101,8 +101,8 @@ jobs: - name: Create Nuget Packages id: createNupkg run: | - nuget pack .nuget\SourceGrid.nuspec -Version $($env:GitVersion_MajorMinor) - Write-Host "::set-output name=nupkg-sourcegrid::sourcegrid.v$($env:GitVersion_MajorMinor).nupkg" + nuget pack .nuget\SourceGrid.nuspec -Version $($env:GitVersion_MajorMinorPatch) + Write-Host "::set-output name=nupkg-sourcegrid::sourcegrid.v$($env:GitVersion_MajorMinorPatch).nupkg" - name: Archive NuGet Packages uses: actions/upload-artifact@v2 @@ -137,9 +137,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v$($env:GitVersion_MajorMinor) + tag_name: v$($env:GitVersion_MajorMinorPatch) #tag_name: ${{ needs.build.outputs.semver }} - release_name: Release v$($env:GitVersion_MajorMinor) + release_name: Release v$($env:GitVersion_MajorMinorPatch) body: | ${{ github.event.head_commit.message }} draft: true