Skip to content

Commit 35a0998

Browse files
committed
Update cake script to include push git tags
1 parent 949f8b3 commit 35a0998

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.cake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ Task("GitTag")
240240
{
241241
Information($"Creating git tag: {buildParameters.GitTagName}");
242242
GitTag("./", buildParameters.GitTagName);
243+
GitPushRef("./", buildParameters.GitHubUsername, buildParameters.GitHubPassword, "origin", buildParameters.GitTagName);
243244
});
244245

245246
///////////////////////////////////////////////////////////////////////////////
@@ -319,7 +320,7 @@ public class BuildParameters
319320
&& (IsMasterBranch || IsHotFixBranch || IsReleaseBranch)
320321
&& !IsPullRequest;
321322

322-
public bool ShouldExecuteGitTag => ShouldPublishNuGet;
323+
public bool ShouldExecuteGitTag => IsMasterBranch && ShouldPublishNuGet;
323324

324325
public string GitTagName => $"v{GitVersion.SemVer}";
325326

0 commit comments

Comments
 (0)