Skip to content

Commit

Permalink
Merge pull request #51 from nunit/issue-49a
Browse files Browse the repository at this point in the history
change workflow triggers
  • Loading branch information
CharliePoole authored Dec 26, 2024
2 parents bbfc91e + 52576ec commit 3adbbaa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipe/publishing.cake
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ public static class PackageReleaseManager
try
{
_context.GitTag(BuildSettings.ProjectDirectory, releaseTag);
_context.GitPushRef(BuildSettings.ProjectDirectory, BuildSettings.GitHubOwner, BuildSettings.GitHubAccessToken, "origin", releaseTag);
_context.Information($" Release tagged as {releaseTag}.");

_context.Information($" Release tagged as {releaseTag} and pushed to origin.");
if (releaseTag.Contains("-alpha."))
{
_context.GitPushRef(BuildSettings.ProjectDirectory, BuildSettings.GitHubOwner, BuildSettings.GitHubAccessToken, "origin", releaseTag);
_context.Information($" Release tag {releaseTag} was pushed to origin.");
}
}
catch (Exception ex)
{
Expand Down

0 comments on commit 3adbbaa

Please sign in to comment.