Skip to main content

Chats & Social Media

As a final step of your build automation process, you may want to report errors or announce a new version through different chats and social media channels. NUKE comes with basic support for the most common platforms.

You can send a Slack messages as follows:

// using static Nuke.Common.Tools.Slack.SlackTasks;

[Parameter] [Secret] readonly string SlackWebhook;

Target Send => _ => _
.Executes(async () =>
{
await SendSlackMessageAsync(_ => _
.SetText("Hello from NUKE!"),
SlackWebhook);
});
note

For more advanced scenarios, check out the SlackAPI or SlackNet project.