2

I am committing and pushing a project into remote using a Cake Build task:

GitAddAll(".");  

GitCommit(".", authorName, authorEmail, message); 

GitTag(".", version);   

GitPush(".", username, password, "master);

The files are being committed to local repository and pushed to remote.

And the tag is being created in local repository but is not being created in remote.

How can I create the tag in remote repository, e.g. Github?

Miguel Moura
  • 36,732
  • 85
  • 259
  • 481

2 Answers2

5

as I posted in my question, if your solution folder under source control

#addin "Cake.Git"
var solutionFolder = "./";
var versionTag = "someTag";

Task("Default")
    .Does(() =>
    {
        GitTag(solutionFolder, versionTag);
        GitPushRef(solutionFolder, gitUser, gitPassword, "origin", versionTag); 
    }
});
makison
  • 373
  • 2
  • 10
0

Push tags explicitly. Or configure push.followTags = true.

phd
  • 82,685
  • 13
  • 120
  • 165