Skip to content

ci: production deploy to GitHub Pages + domain-aware previews#334

Merged
Nonnyjoe merged 1 commit into
feat/preview-for-prfrom
feat/prod-deploy
Jun 5, 2026
Merged

ci: production deploy to GitHub Pages + domain-aware previews#334
Nonnyjoe merged 1 commit into
feat/preview-for-prfrom
feat/prod-deploy

Conversation

@Nonnyjoe

@Nonnyjoe Nonnyjoe commented Jun 5, 2026

Copy link
Copy Markdown
Member

Production-hosting half of the GitHub Pages migration. Stacked on #333 (based on feat/preview-for-pr, so the diff shows only the new pieces).

  • deploy-prod.yml — builds on push to main and publishes to the gh-pages root, preserving pr-preview/ so production and PR previews coexist on the same branch.
  • Domain-aware previews — when a root custom domain is configured (the PAGES_CNAME repo variable), previews build at <domain>/pr-preview/pr-N/ and the comment links there; otherwise unchanged.

Environment (URL / baseUrl / CNAME) is driven by repo Actions variables, so the same workflows serve the github.io test, a staging domain, and production with no code changes. Validated end-to-end on a fork.

Merge after #333.

- deploy-prod.yml: build on push to main and publish to the gh-pages root,
  preserving pr-preview/ so PR previews keep working on the same branch.
- preview workflows: when a root custom domain is configured (the PAGES_CNAME repo
  variable), previews build at <domain>/pr-preview/pr-N/ and the comment links there;
  otherwise unchanged.

Environment (URL / baseUrl / CNAME) is driven by repo Actions variables, so the same
workflows serve the github.io test, a staging domain, and production with no edits.
@Nonnyjoe Nonnyjoe merged commit 210a6f6 into feat/preview-for-pr Jun 5, 2026
@Nonnyjoe Nonnyjoe deleted the feat/prod-deploy branch June 5, 2026 00:36
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