Skip to content

Add pull request preview deployments to the Pages workflow - #1

Merged
AnalyticsCat merged 1 commit into
mainfrom
lengsfeld_adding_preview_mode_for_PR
Sep 17, 2026
Merged

AnalyticsCat merged 1 commit into
mainfrom
lengsfeld_adding_preview_mode_for_PR

Conversation

@AnalyticsCat

Copy link
Copy Markdown
Collaborator

Build every pull request into main and publish it live at /pr-preview/pr-/ on GitHub Pages, with a sticky PR comment linking to it and automatic removal when the pull request closes.

The gh-pages branch now holds the production build at its root plus the preview folders. The deploy workflow publishes that branch and gains a publish-only mode that the preview workflow dispatches. No repository settings change: Pages stays on the GitHub Actions source and only main deploys to the github-pages environment.

Build every pull request into main and publish it live at
/pr-preview/pr-<number>/ on GitHub Pages, with a sticky PR comment linking
to it and automatic removal when the pull request closes.

The gh-pages branch now holds the production build at its root plus the
preview folders. The deploy workflow publishes that branch and gains a
publish-only mode that the preview workflow dispatches. No repository
settings change: Pages stays on the GitHub Actions source and only main
deploys to the github-pages environment.
@github-actions

github-actions Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Site preview

The preview for this pull request has been removed because it was closed.

@AnalyticsCat
AnalyticsCat merged commit 131c52f into main Sep 17, 2026
2 checks passed
github-actions Bot added a commit that referenced this pull request Sep 17, 2026
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.

1 participant