mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: make-release: add nuget support
This commit is contained in:
parent
4f5f1dd350
commit
6da92f0b54
@ -325,6 +325,26 @@ Push the winfsp.sym repository to GitHub.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Make-NugetRelease {
|
||||||
|
Task -ScriptBlock {
|
||||||
|
Check-Assets
|
||||||
|
|
||||||
|
Push-Location "$ProjectRoot\build\VStudio\build\Release"
|
||||||
|
nuget push (Resolve-Path winfsp.net.[0-9]*.nupkg) -Source https://api.nuget.org/v3/index.json
|
||||||
|
if ($LastExitCode -ne 0) {
|
||||||
|
Write-Stderr "error: cannot push to Nuget"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
Pop-Location
|
||||||
|
|
||||||
|
Write-Stdout @"
|
||||||
|
|
||||||
|
Nuget release for $($ReleaseInfo.Tag) has been pushed.
|
||||||
|
|
||||||
|
"@
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function Make-ChocoRelease {
|
function Make-ChocoRelease {
|
||||||
Task -ScriptBlock {
|
Task -ScriptBlock {
|
||||||
Check-Assets
|
Check-Assets
|
||||||
@ -358,4 +378,5 @@ Build-AssetsPhase1
|
|||||||
Build-AssetsPhase2
|
Build-AssetsPhase2
|
||||||
Make-GitHubRelease
|
Make-GitHubRelease
|
||||||
Upload-Symbols
|
Upload-Symbols
|
||||||
|
Make-NugetRelease
|
||||||
Make-ChocoRelease
|
Make-ChocoRelease
|
||||||
|
Loading…
x
Reference in New Issue
Block a user