Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoch committed Mar 24, 2019
1 parent 2e85011 commit a4cd388
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
33 changes: 18 additions & 15 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,22 +180,25 @@ from framework in project.GetTargetFrameworks()
.SetTargetPath(v)),
degreeOfParallelism: 5,
completeOnFailure: true);
});

if (GitRepository.Branch.EqualsOrdinalIgnoreCase(MasterBranch))
{
SendSlackMessage(m => m
.SetText(new StringBuilder()
.AppendLine($"<!here> :mega::shipit: *NUKE {GitVersion.SemVer} IS OUT!!!*")
.AppendLine()
.AppendLine(ChangelogSectionNotes.Select(x => x.Replace("- ", "• ")).JoinNewLine()).ToString()),
SlackWebhook);

SendGitterMessage(new StringBuilder()
.AppendLine($"@/all :mega::shipit: **NUKE {GitVersion.SemVer} IS OUT!!!**")
Target Announce => _ => _
.TriggeredBy(Publish)
.OnlyWhenStatic(() => GitRepository.IsOnMasterBranch())
.Executes(() =>
{
SendSlackMessage(m => m
.SetText(new StringBuilder()
.AppendLine($"<!here> :mega::shipit: *NUKE {GitVersion.SemVer} IS OUT!!!*")
.AppendLine()
.AppendLine(ChangelogSectionNotes.Select(x => x.Replace("- ", "* ")).JoinNewLine()).ToString(),
"593f3dadd73408ce4f66db89",
GitterAuthToken);
}
.AppendLine(ChangelogSectionNotes.Select(x => x.Replace("- ", "• ")).JoinNewLine()).ToString()),
SlackWebhook);

SendGitterMessage(new StringBuilder()
.AppendLine($"@/all :mega::shipit: **NUKE {GitVersion.SemVer} IS OUT!!!**")
.AppendLine()
.AppendLine(ChangelogSectionNotes.Select(x => x.Replace("- ", "* ")).JoinNewLine()).ToString(),
"593f3dadd73408ce4f66db89",
GitterAuthToken);
});
}
2 changes: 2 additions & 0 deletions shell-completion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Plan:
Root:
Skip:
- Analysis
- Announce
- Changelog
- Clean
- Compile
Expand All @@ -37,6 +38,7 @@ Source:
SymbolSource:
Target:
- Analysis
- Announce
- Changelog
- Clean
- Compile
Expand Down

0 comments on commit a4cd388

Please sign in to comment.