Skip to content

Add demo deployment per PR - #15

Open
saulshanabrook wants to merge 1 commit into
mainfrom
pr-preview-deploy
Open

saulshanabrook wants to merge 1 commit into
mainfrom
pr-preview-deploy

Conversation

@saulshanabrook

Copy link
Copy Markdown
Member

Closes #13.

Summary

  • Add .github/workflows/pr-preview.yml to build and deploy a live GitHub Pages demo preview at https://egraphs-good.github.io/egraph-visualizer/pr-preview/pr-<number>/ on pull_request (opened, reopened, synchronize), post/update a sticky PR comment with the preview URL, and automatically remove the preview on closed.
  • Update .github/workflows/publish.yml so deployments from main/tags update the root of the gh-pages branch while preserving active pr-preview/ directories, sharing a serialized github-pages-deploy concurrency group and keeping gh-pages squashed to a single commit to avoid repo history bloat.
  • On the first PR run before gh-pages has a root site, seeds root / from main so the main demo site stays live uninterrupted.
  • Also runs yarn lint on all PRs (including forks); preview deployment is scoped to same-repo PRs.

@github-actions

Copy link
Copy Markdown
Contributor

Demo preview deployed for commit 5b00bcd:

https://egraphs-good.github.io/egraph-visualizer/pr-preview/pr-15/

This branch was successfully deployed

1 active deployment
github-pages — 5b00bcde Deployed Nov 22, 2026 by saulshanabrook via deploy-preview #1
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.

Add demo deployment per PR

1 participant