mirror of
https://github.com/nsnail/ns-ext.git
synced 2025-04-20 01:22:51 +08:00
<chore>
This commit is contained in:
parent
cb63791dbc
commit
9ae1046dca
@ -94,7 +94,7 @@ Task("Publish-GitHub")
|
|||||||
});
|
});
|
||||||
|
|
||||||
Task("Publish-NuGet")
|
Task("Publish-NuGet")
|
||||||
.WithCriteria(ctx => BuildSystem.IsRunningOnGitHubActions, "Not running on GitHub Actions")
|
// .WithCriteria(ctx => BuildSystem.IsRunningOnGitHubActions, "Not running on GitHub Actions")
|
||||||
.IsDependentOn("Package")
|
.IsDependentOn("Package")
|
||||||
.Does(context =>
|
.Does(context =>
|
||||||
{
|
{
|
||||||
@ -104,13 +104,14 @@ Task("Publish-NuGet")
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Publish to GitHub Packages
|
// Publish to GitHub Packages
|
||||||
foreach(var file in context.GetFiles("./.artifacts/*.nupkg"))
|
foreach(var file in context.GetFiles($"{pkgOutPath}/*.*nupkg"))
|
||||||
{
|
{
|
||||||
context.Information("Publishing {0}...", file.GetFilename().FullPath);
|
context.Information("Publishing {0}...", file.GetFilename().FullPath);
|
||||||
DotNetNuGetPush(file.FullPath, new DotNetNuGetPushSettings
|
DotNetNuGetPush(file.FullPath, new DotNetNuGetPushSettings
|
||||||
{
|
{
|
||||||
Source = "https://api.nuget.org/v3/index.json",
|
Source = "https://api.nuget.org/v3/index.json",
|
||||||
ApiKey = apiKey,
|
ApiKey = apiKey,
|
||||||
|
SkipDuplicate = true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -119,7 +120,7 @@ Task("Publish-NuGet")
|
|||||||
// Targets
|
// Targets
|
||||||
|
|
||||||
Task("Publish")
|
Task("Publish")
|
||||||
.IsDependentOn("Publish-GitHub")
|
//.IsDependentOn("Publish-GitHub")
|
||||||
.IsDependentOn("Publish-NuGet");
|
.IsDependentOn("Publish-NuGet");
|
||||||
|
|
||||||
Task("Default")
|
Task("Default")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user