Netlify Deploy
Automatic Netlify builds on WordPress publish and update events.
by Tiny Pixel Collective · github.com/pixelcollective/netlify-deploy · website
★ 70stars
10composer installs
4forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pixelcollective/netlify-deploy/archive/refs/heads/master.zipAlso on Packagist as pixelcollective/netlify-deploy:
composer require pixelcollective/netlify-deployFrom the readme
Netlify Deploy 🚗💨
Automatic Netlify builds on WordPress publish and update events.
Features
- Makes it super easy to keep a static frontend in sync with your post database
- Out of the box support for configuration with .env
- Full composer support
- Supports custom posttypes
- Supports custom publish hooks
- Free & open source
Requirements
- WordPress 5.2+
- PHP 7.2+
Install
Usage
Request a webhook URL from Netlify to use to trigger builds (you can find the "Build hooks" section on your site dashboard at /settings/deploys#build-hooks).
Next, add the URL to your site .env variables and activate the plugin. Env variables are included in .env.example and below, for your reference:
Filters
netlifyposttypes
By default the plugin makes a run on the provided Netlify webhook when the standard WordPress posttypes post and page undergo a change in publish status.
If you would like to modify this you can do so by passing an array of desired posttypes to the netlifyposttypes filter.
netlifywebhooks
You can modify your webhooks at runtime using the netlifyhooks filter:
netlifyenvoverride
If you don't want to use env variable