After a successful/error build send real-time notifications to your Android, iPhone, iPad, and Desktop via Pushover
To include this plugin in your site deployment:
# Add the plugin as a dependency to your build
npm i --s netlify-plugin-pushover
Add the following lines to your netlify.toml configuration file:
[[plugins]]
package = "netlify-build-plugin-pushover"
[plugins.inputs]
successMessage = "" #Optional
errorMessage = "" #Optional
Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.
You can overide the default messages using inputs.
Input | Type | Default Value |
---|---|---|
successMessage | String | Hi there, we just deployed the site successfully 🎉 |
errorMessage | String | Hi there, Latest build failed 😱\n\nCheck your build's log for more details |
Note: Site URL depending upon deploy context will be appended to both the messages.
# netlify.toml
# Production context:
[context.production]
[[context.production.plugins]]
package = "netlify-build-plugin-pushover"
[context.production.plugins.inputs]
successMessage="Success msg from Production"
errorMessage="Error msg from Production"
# Deploy Preview context:
[context.deploy-preview]
[[context.deploy-preview.plugins]]
package = "netlify-build-plugin-pushover"
[context.deploy-preview.plugins.inputs]
successMessage="Success msg from deploy preview"
errorMessage="Error msg from deploy preview"
Get the api credentials from Pushover and set it as an environmental variable in Netlify
- PUSHOVER_USER_KEY
- PUSHOVER_API_TOKEN
If those variables are not present, the build will continue without sending push notification
Once configured everything, you'll start getting notifications like this in your device