feat: static site previews#20
Merged
Merged
Conversation
• Add build-pr.yaml to build the Hugo site from pull requests • Add stage-cloudflare.yaml to deploy PR previews to Cloudflare staging • Add cleanup-cloudflare.yaml to remove stale Cloudflare deployments on PR close • Update README.md to document Cloudflare Pages integration and PR preview workflow
hmacdope
approved these changes
Jun 25, 2025
Collaborator
hmacdope
left a comment
There was a problem hiding this comment.
LGTM @ethanholz, merge whenever
Contributor
Author
|
Cool cool! I can go ahead and merge this but you guys will need to setup your Cloudflare pieces to get this going. Would you mind adding secrets and then we can merge so we can validate that everything runs correctly? You guys should already have the account, just need to get it added to this repo. See this page for more info on what you need: https://github.com/omsf/static-site-tools/?tab=readme-ov-file#cloudflare. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces GitHub Actions workflows to automate the build, staging, and cleanup processes for Hugo site deployments on Cloudflare Pages. Additionally, the
README.mdfile has been updated to reflect these changes.GitHub Actions Workflows for Hugo Site Deployment:
.github/workflows/build-pr.yaml: Adds a workflow to build the Hugo site for pull requests, generate an artifact, and upload it for staging..github/workflows/stage-cloudflare.yaml: Adds a workflow to stage the Hugo site on Cloudflare Pages after successful builds, including PR metadata handling and deployment configurations..github/workflows/cleanup-cloudflare.yaml: Adds a workflow to clean up old Cloudflare Pages preview deployments when pull requests are closed.Documentation Updates:
README.md: Updates to include details about Cloudflare Pages deployment, PR previews, and associated workflows (build-pr.yaml,stage-cloudflare.yaml, andcleanup-cloudflare.yaml). [1] [2]