Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Create a WordPress Plugin to Rebuild Your Gatsby App on AWS using GitHub Actions

Blog post from Twilio

Post Details
Company
Date Published
Author
Christina Hasternath
Word Count
2,000
Language
English
Hacker News Points
-
Summary

A WordPress plugin written in PHP enables content editors to rebuild their Gatsby app by manually rerunning GitHub Actions from within the WordPress admin dashboard. The plugin creates a menu item in the admin console with buttons to publish to beta and production environments, allowing users to easily update and publish new content. The plugin uses WPGraphQL to create a GraphQL layer from WordPress content and queries data via the gatsby-source-graphql plugin to the Gatsby app. It also uses GitHub Actions API authorization and includes a success message for user confirmation. The plugin is uploaded to the WordPress dashboard, activated, and can be used to deploy the Gatsby app to AWS/S3 with a single click of a button.