Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ExampleProject
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
scripts
ExampleProject
Merge requests
!19
Fix: nuget push
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Fix: nuget push
Topic/570-gitVersion
into
master
Overview
0
Commits
2
Pipelines
2
Changes
1
Merged
L. Ellenbeck
requested to merge
Topic/570-gitVersion
into
master
5 years ago
Overview
0
Commits
2
Pipelines
2
Changes
1
0
0
Merge request reports
Compare
master
version 1
087dba28
5 years ago
master (base)
and
latest version
latest version
d198e5ac
2 commits,
5 years ago
version 1
087dba28
1 commit,
5 years ago
1 file
+
16
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
build.cake
+
16
−
10
View file @ d198e5ac
Edit in single-file editor
Open in Web IDE
Show full file
@@ -296,16 +296,21 @@ Task("NugetPush")
.Does(() =>{
var nupkgs = GetFiles($"{nupkgDir}/*.nupkg");
Information("Need to push {0} packages", nupkgs.Count);
foreach(var nupkg in nupkgs) {
Information("Pushing {0}", nupkg);
NuGetPush(nupkg, new NuGetPushSettings {
Source = nugetSource,
ApiKey = nugetApiKey
});
if(!String.IsNullOrWhiteSpace(nugetApiKey)) {
foreach(var nupkg in nupkgs) {
Information("Pushing {0}", nupkg);
NuGetPush(nupkg, new NuGetPushSettings {
Source = nugetSource,
ApiKey = nugetApiKey
});
}
} else {
Information("NugetApiKey is not set. Can't push.");
throw new Exception("NugetApiKey is not set. Can't push.");
}
});
Task("
Move
ToArtifacts")
Task("
Copy
ToArtifacts")
.Does(() =>{
foreach(var project in projects) {
if(!project.GetDirectory().ToString().EndsWith(".Tests")
@@ -320,11 +325,12 @@ Task("MoveToArtifacts")
Task("Prerelease")
.IsDependentOn("Build")
.IsDependentOn("
Move
ToArtifacts");
.IsDependentOn("
Copy
ToArtifacts");
Task("Release")
.IsDependentOn("NugetPush")
.IsDependentOn("MoveToArtifacts");
.IsDependentOn("NugetPack")
.IsDependentOn("CopyToArtifacts")
.IsDependentOn("NugetPush");
Task("Default")
.IsDependentOn("Test");
Loading