mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-08-07 21:52:25 +08:00
* 当body 为 FileBufferingReadStream,可能会出现request.Body.Length=0的情况
* 修改package id 避免下载到原版 * 发布到nuget.org
This commit is contained in:
24
nuget/build-and-push.ps1
Normal file
24
nuget/build-and-push.ps1
Normal file
@ -0,0 +1,24 @@
|
||||
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Param(
|
||||
# Nuget APIKey
|
||||
[string] $apikey
|
||||
)
|
||||
|
||||
if ($apikey -eq $null -or $apikey -eq "")
|
||||
{
|
||||
Write-Error "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD>apiKey";
|
||||
return;
|
||||
}
|
||||
|
||||
rm -r ../src/Ocelot/bin/Release
|
||||
dotnet build -c Release ../Ocelot.sln
|
||||
$files = Get-ChildItem -Path ../src/Ocelot/bin/Release -Filter *-ns*.nupkg
|
||||
foreach($file in $files)
|
||||
{
|
||||
dotnet nuget push $file.fullName --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
|
||||
}
|
||||
$files = Get-ChildItem -Path ../src/Ocelot/bin/Release -Filter *-ns*.snupkg
|
||||
foreach($file in $files)
|
||||
{
|
||||
dotnet nuget push $file.fullName --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json
|
||||
}
|
Reference in New Issue
Block a user