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?
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);
}
});