Skip to content

marijoo/wp-webhook-netlify-deploy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP Webhook Netlify Deploy

Banner Image

Description

Easily deploy static sites using Wordpress and Netlify

Build Quickly and easily send webhooks to build your Netlify

Status Check the status of your latest build to see if it was successful without even leaving Wordpress


Installation

From your WordPress dashboard

  1. Visit Plugins > Add New
  2. Search for "Deploy Webhook Button"
  3. Install plugin
  4. Activate the plugin
  5. Click on the new menu item "Deploy Netlify Webhook" and enter your site details/keys
  6. Enter enter your site_id, webhook POST address, Netlify API Key, and User-Agent
  7. Read the documentation to get started

Where do I get the field data from?

Webhook Build

  1. Visit Netlify > Site-Name > Settings > Build & Deploy
  2. Create A Build Hook (or use an existing hook)
  3. Copy The Build Hook URL into the Webhook Build URL field

Webhook Build URL

Netlify site_id

  1. Visit Netlify > Site-Name > Settings
  2. Copy APP_ID and paste into the Netlify site_id field

Netlify Site Info

Netlify API Key

  1. Visit Netlify > User Settings > Applications > Personal Access Tokens
  2. Create A Personal Access Token (or use an existing one)
  3. Copy The token and paste into the Netlify API Key field

Netlify OAuth Applications

User-Agent Site Value

  1. Visit Netlify > Site-Name > Settings
  2. Copy The Site Name and paste into the User-Agent Site Value field
  3. Add The site url in brackets to the User-Agent Site Value field
  4. Your field should look similar to this SiteNameNoSpaces (site-name-url.com)

Netlify Site Info


Admin Bar

A deploy button and the status badge of the last build is added to the admin bar. By default this will only be displayed to users that can manage_options.

You may allow other user roles with these two filters:

add_filter('netlify_status_capability', function() {
    return 'edit_pages';
});

add_filter('netlify_deploy_capability', function() {
    return 'edit_pages';
});

Screenshots

Main Plugin page

Developer Settings Page

User Page


Links


Changelog

1.0.0

  • Fixed UI
  • Seperate Developer Settings and User Build Screen

0.1.0

  • Initial Release

View full changelog: here

About

WP Plugin that adds functionality to easily send Netlify Webhook requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%