Skip to content

Commit e27ed30

Browse files
committed
Upload gem
1 parent 59075bc commit e27ed30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.cake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,17 @@ Task("Upload-AppVeyor-Artifacts")
128128
.WithCriteria(() => BuildSystem.AppVeyor.IsRunningOnAppVeyor)
129129
.Does(() =>
130130
{
131+
var gem = string.IsNullOrEmpty(preReleaseTag) ?
132+
"gitversion-" + version + ".gem" :
133+
"gitversion-" + version + "." + preReleaseTag + ".gem";
134+
131135
System.IO.File.WriteAllLines("build/artifacts", new[]{
132136
"NuGetExeBuild:GitVersion.Portable." + nugetVersion +".nupkg",
133137
"NuGetCommandLineBuild:GitVersion.CommandLine." + nugetVersion +".nupkg",
134138
"NuGetRefBuild:GitVersion." + nugetVersion +".nupkg",
135139
"NuGetTaskBuild:GitVersionTask." + nugetVersion +".nupkg",
136140
"NuGetExeBuild:GitVersion.Portable." + nugetVersion +".nupkg",
141+
"GemBuild:" + gem,
137142
"zip:GitVersion_" + nugetVersion + ".zip",
138143
"releaseNotes:releasenotes.md"
139144
});
@@ -144,6 +149,7 @@ Task("Upload-AppVeyor-Artifacts")
144149
AppVeyor.UploadArtifact("build/NuGetTaskBuild/GitVersionTask." + nugetVersion +".nupkg");
145150
AppVeyor.UploadArtifact("build/GitVersionTfsTaskBuild/gittools.gitversion-" + semVersion + ".vsix");
146151
AppVeyor.UploadArtifact("build/GitVersion_" + nugetVersion + ".zip");
152+
AppVeyor.UploadArtifact("build/GemBuild/" + gem);
147153
});
148154

149155

0 commit comments

Comments
 (0)