Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prasenjeetnath authored Nov 17, 2023
1 parent 0ae2ca5 commit 90e2e8f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,11 @@ 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-$($env:GitVersion_MajorMinor).zip"
$fileName = "sourcegrid-v$($env:GitVersion_MajorMinorPatch).zip"
Write-Host "Filename: '$fileName'"
Write-Host "sourceFolder: '$sourceFolder'"
Write-Host "Outfolder: '$outFolder'"
Write-Host "::set-output name=sourcegrid::$($fileName)"
Remove-Item $sourceFolder\**\*.pdb -Force -Recurse
$outPath = Join-Path $outFolder $fileName
Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal
Expand All @@ -102,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.($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
Expand Down

0 comments on commit 90e2e8f

Please sign in to comment.