Skip to content

Add ephemeral PR previews on gh-pages branch#54

Open
njvack wants to merge 1 commit into
mainfrom
claude/pr-deployment-directories-3xqi1p
Open

Add ephemeral PR previews on gh-pages branch#54
njvack wants to merge 1 commit into
mainfrom
claude/pr-deployment-directories-3xqi1p

Conversation

@njvack

@njvack njvack commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Move deployment from the official GitHub Pages action to a gh-pages
branch so the live site and per-PR previews can coexist.

  • deploy.yml: main now publishes to gh-pages root via
    JamesIves/github-pages-deploy-action, excluding pr-preview/ so the
    live deploy never wipes an open PR's preview.
  • pr-preview.yml: builds each PR into pr-preview/pr-/ and removes it
    when the PR is merged or closed (rossjrw/pr-preview-action).
  • docs/deployment.md: documents the branch layout and the two one-time
    repo settings (Pages source + workflow permissions).

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01TB4d6s2DV2k8M8kSpS1aTE

Move deployment from the official GitHub Pages action to a gh-pages
branch so the live site and per-PR previews can coexist.

- deploy.yml: main now publishes to gh-pages root via
  JamesIves/github-pages-deploy-action, excluding pr-preview/ so the
  live deploy never wipes an open PR's preview.
- pr-preview.yml: builds each PR into pr-preview/pr-<N>/ and removes it
  when the PR is merged or closed (rossjrw/pr-preview-action).
- docs/deployment.md: documents the branch layout and the two one-time
  repo settings (Pages source + workflow permissions).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TB4d6s2DV2k8M8kSpS1aTE
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://njvack.github.io/scatterize/pr-preview/pr-54/

Built to branch gh-pages at 2026-07-18 21:23 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants