From f1f4a18079cd0fd54d424e77f95f242b5e84a4d0 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 24 Jul 2026 23:34:22 +0000 Subject: [PATCH] Add draft post to demo PR preview environments --- site/content/posts/hello-pr-previews/index.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 site/content/posts/hello-pr-previews/index.md diff --git a/site/content/posts/hello-pr-previews/index.md b/site/content/posts/hello-pr-previews/index.md new file mode 100644 index 0000000..6577ed7 --- /dev/null +++ b/site/content/posts/hello-pr-previews/index.md @@ -0,0 +1,23 @@ ++++ +title = 'Hello PR Previews' +date = 2026-07-24 +draft = true +tags = ["meta", "devops"] +description = "Testing out our shiny new PR preview environments — every pull request now gets its own live URL." ++++ + +This is a draft post that only exists on a feature branch. If you're reading this on the preview URL, the PR preview system is working! + +## What just happened? + +When this branch was pushed and a pull request opened, GitHub Actions automatically: + +1. Built this Hugo site with a branch-specific base URL +2. Deployed it to a subdirectory on the `gh-pages` branch +3. Posted a comment on the PR with a link to this exact page + +The main site at `https://mathieson.github.io/blog/` has no idea this post exists — it's draft-only, on a branch, and hasn't been merged. + +## Pretty neat + +This is the same idea as GitLab Review Apps, just wired up with GitHub Actions and a couple of community actions (`peaceiris/actions-gh-pages` and `rossjrw/pr-preview-action`).