[WordPress] 外掛分享: Deploy with NetlifyPress

首頁外掛目錄 › Deploy with NetlifyPress
WordPress 外掛 Deploy with NetlifyPress 的封面圖片
300+
安裝啟用
★★★★
4.7/5 分(3 則評價)
1977 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.6+ v1.1.1 上架:2019-08-27

內容簡介

Deploy with NetlifyPress 讓你在 WordPress 控制台中自動或手動觸發 Netlify 部署,省去每次更新內容後還要登入 Netlify 手動建置的麻煩,特別適合使用無頭式(Headless)架構搭配 Netlify 託管的靜態網站。

【主要功能】
• 發佈文章時自動觸發 Netlify 部署
• 更新文章時自動觸發 Netlify 部署
• 刪除文章時自動觸發 Netlify 部署
• 可篩選要啟用自動部署的文章類型
• 在管理工具列加入手動部署按鈕

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Deploy with NetlifyPress」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Instead of going into Netlify and triggering a deploy everytime you make a change in WordPress, automate and make things easier with the Deploy with NetlifyPress plugin. Deploy with NetlifyPress lets you trigger deploys in Netlify (automatically!) without having to leave your WordPress Dashboard.
Use Cases
So, you’ve build a headless static front-end for your WordPress site and hosted it on Netlify, good job! Wondering how would you trigger a deploy in Netlify everytime someone updates a post in WordPress? Forget going inside everytime an update is made and triggering a build manually, install Deploy with NetlifyPress and let it run a deploy for you automatically on each update.
If you’re looking for a real-life example, I’ve build my personal site nahid.dev (GitHub) using GatsbyJS with its source as WordPress and am hosting it on Netlify. I use Deploy with NetlifyPress to automate deploys when I update pages and posts.
Core Features
The core features of the plugin include the abilities to:
* Automatically trigger deploys on post publish
* Automatically trigger deploys on post update
* Automatically trigger deploys on post trash
* Filter the post types for which you want automatic deploys to run
* Add a button for manual deployments on the top admin toolbar.
Requirements
This plugin requires you have a site hosted on Netlify and a Build Webhook URL set up. Here’s how you can get a Build Hook URL:
1. Log into Netlify.
2. From the list of sites, enter the site you want to set up Deploy with NetlifyPress for.
3. Go to Site settings.
4. From the left sidebar, go to Build and deploy→Continuous Deployment.
5. Scroll down to the “Build hooks” section.
6. Click the “Add build hook” button, enter a preferred name for the webhook (e.g. “Deploy from WordPress”), choose the Git branch to build and hit Save.
7. You’ll be given a Build Hook URL that can be used in Deploy with NetlifyPress.
Installation
Installation of the Deploy with NetlifyPress plugin is very simple. Follow along with the installation procedure in the dedicated Installation tab.
Usage

Install and activate the plugin
Go to your WordPress Dashboard→NetlifyPress
On the “Connect with Netlify” tab, enter your Netlify Build Hook URL.
On the “Automatic Deployment” tab, choose if you want to use Automatic Deployment, on which actions should it trigger and which post types the actions should apply to.
On the “Manual Deployment” tab, choose if you want to add a “Trigger Netlify Deploy” manual trigger button in the top admin toolbar.

Support
If the above usage steps don’t answer your question(s), if you want to report an issue or if something is not working as expected, please create a topic in the Support Forum.
Roadmap
I have plans for the following features/improvements in the coming days (subject to user feedback and usage):
1. Admin options migration to Settings API with Ajax support.
2. Success/failure message on auto deploy trigger.
3. Success/failure message on auto deploy status (after completion).
4. Scheduled deployments.
5. Deployment logs.
Contribute
If you want to contribute to the plugin by reporting issues, implementing new features and so on, here’s its development repository on Github.
Sponsor
You can sponsor this project and support my open-source development by becoming a Patron!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon