Netlify deploy slack notification

image

How to setup

Get your slack webhook URL

According to Slack documentation:

  1. Create a new Slack app in the workspace where you want to post messages.
  2. From the Features page, toggle Activate Incoming Webhooks on.
  3. Click Add New Webhook to Workspace.
  4. Pick a channel that the app will post to, then click Authorize.
  5. Use your Incoming Webhook URL to post a message to Slack.

Deploy to Heroku

$ heroku create
$ git push heroku master
$ heroku open

or

Deploy to Heroku

Set up deploy notification in Netlify

  1. Go to your project netlify dashbord, then 'Deploys' >> 'Notifications'.
  2. Click 'Add notification' and 'Outgoing webhook'.
  3. This app support webhooks for 3 events you can add - Deploy started, Deploy succeded or Deploy failed.
  4. 'URL to notify' will be YOUR_DEPLOYED_APP_ADDRESS/$URL_TOKEN, e.g. https://awesome-notification.herokuapp.com/fb80d69a
  5. Save webhooks for all desired events and you should start getting Slack messages about your netlify app deploys.