This repository serves as the hosting location for pull request previews of the Wafer Space website.
This repository is automatically managed by GitHub Actions and serves PR previews at https://preview.wafer.space/pr-[number]/.
- Automated Deployment: GitHub Actions from the main repository automatically build and deploy PR previews here
- Custom Domain: Uses GitHub Pages with custom domain
preview.wafer.space - Directory Structure: Each PR gets its own directory (
pr-1/,pr-2/, etc.) - User-Friendly URLs: Slugified redirects are created for better UX (
pr-1-feature-name/→pr-1/) - Auto-Cleanup: PR directories are automatically removed when PRs are closed or merged
pr-[number]/- Individual PR preview directories containing built Jekyll sitespr-[number]-[slug]/- User-friendly redirect directories (when applicable)index.html- Auto-generated listing of all active previewsCNAME- Domain configuration forpreview.wafer.spacegenerate-preview-index.sh- Script to generate the preview listing page.github/templates/- Templates for the preview index page
This repository is integrated with the main repository's PR workflow:
- On PR Open/Update: Builds site with PR-specific baseurl and deploys to
pr-[number]/ - On PR Close: Removes the PR directory and any associated redirects
- Index Generation: Automatically updates the main index page listing all active previews
- Automatic: The repository is maintained entirely by GitHub Actions
- History Cleanup: Periodically cleaned to prevent excessive repository size
- No Manual Intervention: Should not require manual commits or changes
- Uses SSH deploy keys for secure access from the main repository's GitHub Actions
- All deployments are automated and verified before being marked as successful
Note: This repository is for preview hosting only. All source code and development should occur in the main wafer-space.github.io repository.