mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add Publish-NuGetFeed function to build.psm1
This commit is contained in:
1 parent
3bae87d2a4
commit
159dcee626
3 files changed
+40
-5
No files matched your search
+28
@@ -529,6 +529,34 @@ Built upon .NET Core, it is also a C# REPL.
|
||||
}
|
||||
}
|
||||
|
||||
function Publish-NuGetFeed
|
||||
{
|
||||
param(
|
||||
[string]$OutputPath = "$PSScriptRoot/nuget-artifacts",
|
||||
[Parameter(Mandatory=$true)]
|
||||
[string]$VersionSuffix
|
||||
)
|
||||
|
||||
@(
|
||||
'Microsoft.Management.Infrastructure',
|
||||
'Microsoft.PowerShell.Commands.Management',
|
||||
'Microsoft.PowerShell.Commands.Utility',
|
||||
'Microsoft.PowerShell.ConsoleHost',
|
||||
'Microsoft.PowerShell.PSReadLine',
|
||||
'Microsoft.PowerShell.Security',
|
||||
'System.Management.Automation'
|
||||
) | % {
|
||||
if ($VersionSuffix)
|
||||
{
|
||||
dotnet pack "src/$_" --output $OutputPath --version-suffix $VersionSuffix
|
||||
}
|
||||
else
|
||||
{
|
||||
dotnet pack "src/$_" --output $OutputPath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function Start-DevPSGitHub {
|
||||
param(
|
||||
|
||||
Reference in new issue
Block a user