mirror of
				https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
				synced 2025-11-04 15:10:51 +08:00 
			
		
		
		
	* 更新 knife4j-vue 源码
* 修改package id 避免下载到原版 * 发布到nuget.org
This commit is contained in:
		
							
								
								
									
										26
									
								
								nuget/build-and-push.ps1
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								nuget/build-and-push.ps1
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
# 定义参数
 | 
			
		||||
Param(
 | 
			
		||||
    # Nuget APIKey
 | 
			
		||||
    [string] $apikey
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if ($apikey -eq $null -or $apikey -eq "")
 | 
			
		||||
{
 | 
			
		||||
    Write-Error "必须指定apiKey";
 | 
			
		||||
    return;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
rm -r ../src/IGeekFan.AspNetCore.Knife4jUI/bin/Release
 | 
			
		||||
dotnet build -c Release ../IGeekFan.AspNetCore.Knife4jUI.sln
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
$files = Get-ChildItem -Path ../src/IGeekFan.AspNetCore.Knife4jUI/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/IGeekFan.AspNetCore.Knife4jUI/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