Skip to content

ci: deploy to the matgui-doc Cloudflare Pages project - #264

Merged
MathiasVDA merged 6 commits into
mainfrom
claude/project-thread-dvin92
Nov 26, 2026
Merged

MathiasVDA merged 6 commits into
mainfrom
claude/project-thread-dvin92

Conversation

@MathiasVDA

@MathiasVDA MathiasVDA commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Cloudflare Pages projects can't be renamed, so the deploy and preview-cleanup workflows now use the fixed project name matgui-doc instead of the repository name.

  • The matgui-doc project is created on the first push (this branch's push already does that).
  • After merging, main is live at matgui-doc.pages.dev, and branch previews are at <branch>.matgui-doc.pages.dev.
  • The old matgui project can then be deleted in the Cloudflare dashboard, and matgui-doc.matdata.eu added as a custom domain on matgui-doc.

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 MathiasVDA left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@MathiasVDA
MathiasVDA merged commit bedb985 into main Nov 26, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
preview — 6476ed92 Deployed Nov 26, 2026 by github-actions[bot]
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