WP GitHub Deploy Trigger
Triggers a GitHub Actions workflow_dispatch when WordPress posts are published, so your static Next.js site rebuilds automatically.
by Your Name (Template) · github.com/finlin67/gtmstack-github-deploy-trigger
★ 0stars
0forks
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/finlin67/gtmstack-github-deploy-trigger/archive/refs/heads/main.zipGTMStack GitHub Deploy Trigger
Contributors: gtmstack Tags: github, actions, webhook, headless, nextjs, static Requires at least: 5.8 Tested up to: 6.4 Stable tag: 1.1.0 License: GPLv2 or later
Triggers a GitHub Actions workflow_dispatch when WordPress posts are published, so your static Next.js site rebuilds automatically.
Installation
- Upload the ZIP via WordPress Admin → Plugins → Add New → Upload Plugin.
- Activate the plugin.
- Add your GitHub token to wp-config.php: define('GTMSTACK_GH_TOKEN', 'YOUR_TOKEN');
- Go to Settings → GTMStack Deploy Trigger, confirm token detected, then enable.
GitHub Requirements
Your workflow must include workflow_dispatch, e.g.:
on: push: branches: ["main"] workflow_dispatch: {}
Notes
- Token is stored in wp-config.php for best security (not in DB).
- Includes a test dispatch button.