GitHub Action to build and deploy your Gatsby site to GitHub Pages
The Gatsby Publish GitHub Action is a powerful tool designed for developers looking to streamline the process of building and deploying Gatsby websites to GitHub Pages. This GitHub Action automates the necessary steps to generate a static site from your Gatsby project, allowing you to focus more on development and less on deployment logistics. With just a few configurations, you can have your site live on GitHub Pages effortlessly.
This action not only simplifies the build process but also provides flexibility through various configuration options. From setting up deployment branches to handling custom domains, the Gatsby Publish GitHub Action caters to both novice and experienced developers alike.
Automatic Build: Runs gatsby build at the root of your repository to generate your static site automatically.
GitHub Access Token: Requires a Personal Access Token with repo scope for secure deployment of your site to GitHub.
Custom Deployment Branch: Choose which branch to deploy your built files to, defaulting to master for standard use cases.
Flexible Repository Configuration: Deploy to the same repository or specify a different one for your site, making it adaptable for project needs.
Custom Build Arguments: Pass additional arguments to gatsby build, allowing you to tailor the build process according to your project requirements.
Skip Publish Option: Perform build validation without publishing by using the skip option, perfect for testing out configurations.
Custom Git Configurations: Set a unique author name and email for git commits pushed to the deploy branch, personalizing your commit history.
Support for Custom Domains: Easily set up a custom domain with a CNAME configuration, making your site branded and professional.