Skip to content

Commit

Permalink
Add symbols publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Nov 28, 2023
1 parent ffbe5d3 commit d5c7fe5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ Set-Location ./templates

if (!$skipbuild) {
Write-Host "UraniumUI templates packing started."
Invoke-Expression "dotnet pack -c Release -o . -p:packageVersion=$version"
Invoke-Expression "dotnet pack -c Release -o . -p:packageVersion=$version --include-symbols"
Write-Host "UraniumUI templates packing completed."
}
if ($push) {
Write-Host "UraniumUI templates pushing started."
Invoke-Expression "dotnet nuget push '*.$version.nupkg' --api-key $apikey --skip-duplicate --source $source"
Invoke-Expression "dotnet nuget push '*.$version.symbols.nupkg' --api-key $apikey --skip-duplicate --source $source"
Write-Host "UraniumUI templates has been pushed successfully." -ForegroundColor Green
Write-Host "Removing nupkg files..."
Invoke-Expression "Remove-Item -Path '*.nupkg' -Force -Recurse"
Invoke-Expression "Remove-Item -Path '**\*.nupkg' -Force -Recurse"

Write-Host "Nupkg files has been removed successfully." -ForegroundColor Green
}

Set-Location ../ # back to root
Set-Location ../ # back to root

Invoke-Expression "Remove-Item -Path '*.nupkg' -Force -Recurse"
Invoke-Expression "Remove-Item -Path '**\*.nupkg' -Force -Recurse"

0 comments on commit d5c7fe5

Please sign in to comment.