Repository navigation
ci: deploy to the matgui-doc Cloudflare Pages project - #264
Merged
Merged
Conversation
Adds a workflow that builds the site on every branch push and deploys it with wrangler to the Cloudflare Pages project named after the repository. main is the production deployment, other branches get a preview alias. The job skips itself while the Cloudflare secrets are missing. The GitHub Pages workflow stays in place until the switch is confirmed.
The Cloudflare API can fail the create call with code 8000000, which left the project missing and the deploy failing.
Cloudflare Pages projects can't be renamed, so the workflows now use the project name matgui-doc instead of the repository name. The project is created on the next push; the old matgui project can then be deleted.
# Conflicts: # .github/workflows/cleanup-cloudflare-previews.yml
MathiasVDA
commented
Nov 26, 2026
MathiasVDA
left a comment
Collaborator
Author
There was a problem hiding this comment.
Review: OK to merge once the deploy and build checks are green.
- Both workflows now use the same fixed name
matgui-doc, so the cleanup job looks in the project the deploy job writes to. - The deploy step still creates the project on first use and accepts "already exists".
After the merge the old matgui project keeps its last deployments until it is deleted in the Cloudflare dashboard; the cleanup workflow no longer touches it.
The branch carries earlier merged commits and merge commits, so this goes in as a squash.
Generated by Claude Code
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cloudflare Pages projects can't be renamed, so the deploy and preview-cleanup workflows now use the fixed project name
matgui-docinstead of the repository name.matgui-docproject is created on the first push (this branch's push already does that).matgui-doc.pages.dev, and branch previews are at<branch>.matgui-doc.pages.dev.matguiproject can then be deleted in the Cloudflare dashboard, and matgui-doc.matdata.eu added as a custom domain onmatgui-doc.