0.1.1 • Published 3 years ago

netlify-plugin-pushover v0.1.1

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

Netlify Pushover Deploy Plugin

After a successful/error build send real-time notifications to your Android, iPhone, iPad, and Desktop via Pushover

Usage

To include this plugin in your site deployment:

1. Add the plugin as a dependency

# Add the plugin as a dependency to your build
npm i --s netlify-plugin-pushover

2. Add the plugin as a dependency

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.

Inputs

You can overide the default messages using inputs.

InputTypeDefault Value
successMessageStringHi there, we just deployed the site successfully 🎉
errorMessageStringHi 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"

3. Set the environmental variable in Netlify

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

npm.io

Demo

Once configured everything, you'll start getting notifications like this in your device

npm.io

npm.io

Reference

0.1.0

3 years ago

0.1.1

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago