1 Star 0 Fork 4.1K

小坠 / Furion

forked from dotNET China / Furion 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
nuget-push.ps1 867 Bytes
Copy Edit Raw Blame History
# 定义参数
Param(
# NuGet APIKey
[string] $apikey
)
Write-Warning "正在发布 framework 目录 NuGet 包......";
# 查找 .\framework\nupkgs 下所有目录
cd .\framework\nupkgs;
$framework_nupkgs = Get-ChildItem -Filter *.nupkg;
# 遍历所有 *.nupkg 文件
for ($i = 0; $i -le $framework_nupkgs.Length - 1; $i++){
$item = $framework_nupkgs[$i];
$nupkg = $item.FullName;
$snupkg = $nupkg.Replace(".nupkg", ".snupkg");
Write-Output "-----------------";
$nupkg;
# 发布到 nuget.org 平台
dotnet nuget push $nupkg --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json;
dotnet nuget push $snupkg --skip-duplicate --api-key $apikey --source https://api.nuget.org/v3/index.json;
Write-Output "-----------------";
}
# 回到项目根目录
cd ../../;
Write-Warning "发布成功";
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/DH_xiaozhui/Furion.git
git@gitee.com:DH_xiaozhui/Furion.git
DH_xiaozhui
Furion
Furion
v4

Search

344bd9b3 5694891 D2dac590 5694891