Skip to content

Commit 86ce6d9

Browse files
committed
Fix artifacts uploading
1 parent 9142aed commit 86ce6d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.cake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ var parserProjectName = "Curl.CommandLine.Parser";
2727
var parserProjectFile = $"./src/{parserProjectName}/{parserProjectName}.csproj";
2828
var httpConverterProjectName = "Curl.HttpClient.Converter";
2929
var httpConverterProjectFile = $"./src/{httpConverterProjectName}/{httpConverterProjectName}.csproj";
30+
var extensionsVersion = XmlPeek(parserProjectFile, "Project/PropertyGroup[1]/VersionPrefix/text()");
3031

3132
Task("Build")
3233
.Does(() =>
@@ -90,8 +91,8 @@ Task("CreateArtifact")
9091
MoveFile(tempPublishArchive, artifactFileName);
9192
BuildSystem.AppVeyor.UploadArtifact(artifactFileName);
9293

93-
BuildSystem.AppVeyor.UploadArtifact("Curl.CommandLine.Parser.nupkg");
94-
BuildSystem.AppVeyor.UploadArtifact("Curl.HttpClient.Converter.nupkg");
94+
BuildSystem.AppVeyor.UploadArtifact(string.Format("{0}.{1}.nupkg", parserProjectName, nugetVersion));
95+
BuildSystem.AppVeyor.UploadArtifact(string.Format("{0}.{1}.nupkg", httpConverterProjectName, nugetVersion));
9596
});
9697

9798
Task("SonarBegin")

0 commit comments

Comments
 (0)