Skip to content

Commit 0944d09

Browse files
committed
Move dotnet pack to Compile step
1 parent 588ef3a commit 0944d09

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

build/Build.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ class Build : NukeBuild
6666
.SetProperty("PackageVersion", GitVersion.NuGetVersionV2)
6767
.SetInformationalVersion(GitVersion.InformationalVersion)
6868
.EnableNoRestore());
69+
70+
DotNetPack(s => s
71+
.SetConfiguration(Configuration)
72+
.SetOutputDirectory(OutputDirectory)
73+
.SetProperty("PackageVersion", GitVersion.NuGetVersionV2)
74+
.SetInformationalVersion(GitVersion.InformationalVersion)
75+
.EnableNoBuild()
76+
);
6977
});
7078

7179
Target Test => _ => _
@@ -96,14 +104,6 @@ class Build : NukeBuild
96104
return;
97105
}
98106

99-
DotNetPack(s => s
100-
.SetConfiguration(Configuration)
101-
.SetOutputDirectory(OutputDirectory)
102-
.SetProperty("PackageVersion", GitVersion.NuGetVersionV2)
103-
.SetInformationalVersion(GitVersion.InformationalVersion)
104-
.EnableNoBuild()
105-
);
106-
107107
var nugetPackage = GlobFiles(OutputDirectory, "*.nupkg").First();
108108

109109
DotNetNuGetPush(s => s

0 commit comments

Comments
 (0)