Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

nuxt.js - Trigger build of Github Pages site from headless Wordpress

I'm exploring the possibility of having a headless Wordpress installation running on a certain domain and whenever something is created or changed in the database it would send a webhook to Github Pages that then would build a static site based on the WP content, with Nuxt.js.

There is this Wordpress plugin called wp-headless-trigger that lets you enter a webhook URL that will be triggered whenever you create or update a post, page or custom post type. It surely works great with Netlify, Vercel and similar, but is it possible to trigger Github Pages? In that case it would require some kind of URL that triggers a Github Action, if I've understood it correctly.

Is this approach even possible with Github Pages or is there any other way to automatically trigger a build on Github Pages from Wordpress when updated?

question from:https://stackoverflow.com/questions/65833234/trigger-build-of-github-pages-site-from-headless-wordpress

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...