1 Star 3 Fork 1

So魚丸丷/EasilyNET

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Push.ps1 564 Bytes
一键复制 编辑 原始数据 按行查看 历史
So魚丸丷 提交于 2024-11-14 17:46 +08:00 . fix: format file
$SCRIPTNAME = $MyInvocation.MyCommand.Name
$ARTIFACTS = $env:ARTIFACTS
if (-not $ARTIFACTS)
{
$ARTIFACTS = ".\artifacts"
}
if ( [string]::IsNullOrEmpty($Env:NUGET_API_KEY))
{
Write-Host "${SCRIPTNAME}: NUGET_API_KEY is empty or not set. Skipped pushing package(s)."
}
else
{
Get-ChildItem $ARTIFACTS -Filter "*.nupkg" | ForEach-Object {
Write-Host "$( $SCRIPTNAME ): Pushing $( $_.Name )"
dotnet nuget push $_ --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY
if ($lastexitcode -ne 0)
{
throw ("Exec: " + $errorMessage)
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C#
1
https://gitee.com/joe_du/EasilyNET.git
git@gitee.com:joe_du/EasilyNET.git
joe_du
EasilyNET
EasilyNET
main

搜索帮助