ci: deploy the site to Cloudflare as static assets #27

Merged
pistonmaster merged 1 commit from ci/cloudflare-static-site into main 2026-11-25 13:56:30 +00:00
Owner

GitHub Pages can't publish from Forgejo. The workflow now deploys build/pages to a Cloudflare Worker that serves static assets only, with no Worker script, at https://commons.6b6t.org. The build, checks and tests are unchanged. The deploy step runs outside PRs with a CLOUDFLARE_API_TOKEN repo secret, scoped to Workers in the 6b6t account plus Worker routes and DNS on 6b6t.org.

The site is already live on Cloudflare: I deployed this config by hand and removed the GitHub Pages DNS record. This PR makes future pushes deploy it.

The Maven repository and Javadoc move from 6b6t.github.io/6b6t-commons to https://commons.6b6t.org, keeping the same paths (/maven, /javadoc). The index page and README use the new URL. The GitHub Pages copy stays online, so existing builds keep resolving, and no other 6b6t repo uses the old URL.

This also fixes the required Publish / build check, which failed on every PR because upload-pages-artifact doesn't exist on Forgejo. After this merges, #26 can be rebased and merged.

🤖 Generated with Claude Code

GitHub Pages can't publish from Forgejo. The workflow now deploys `build/pages` to a Cloudflare Worker that serves static assets only, with no Worker script, at https://commons.6b6t.org. The build, checks and tests are unchanged. The deploy step runs outside PRs with a `CLOUDFLARE_API_TOKEN` repo secret, scoped to Workers in the 6b6t account plus Worker routes and DNS on `6b6t.org`. The site is already live on Cloudflare: I deployed this config by hand and removed the GitHub Pages DNS record. This PR makes future pushes deploy it. The Maven repository and Javadoc move from `6b6t.github.io/6b6t-commons` to `https://commons.6b6t.org`, keeping the same paths (`/maven`, `/javadoc`). The index page and README use the new URL. The GitHub Pages copy stays online, so existing builds keep resolving, and no other 6b6t repo uses the old URL. This also fixes the required `Publish / build` check, which failed on every PR because `upload-pages-artifact` doesn't exist on Forgejo. After this merges, #26 can be rebased and merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ci: deploy the site to Cloudflare as static assets
Some checks are pending
Commit style / Conventional Commits (pull_request) Successful in 3s
Publish / build (pull_request) Successful in 2m16s
Publish / build (push) Waiting to run
2f9f7d2560
GitHub Pages can't publish from Forgejo. The workflow now deploys
build/pages to a Cloudflare Worker that serves static assets only, with no
Worker script, at commons.6b6t.org. The build, checks and tests are unchanged; the
deploy step runs outside pull requests with a scoped CLOUDFLARE_API_TOKEN.

The Maven repository and Javadoc move from 6b6t.github.io/6b6t-commons to
commons.6b6t.org. The GitHub Pages copy stays online, so existing builds
keep resolving. No other 6b6t repository uses the old URL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
approval-bot left a comment

Automatic approval. Required checks still have to pass before merging.

Automatic approval. Required checks still have to pass before merging.
pistonmaster deleted branch ci/cloudflare-static-site 2026-11-25 13:56:30 +00:00
Sign in to join this conversation.
No description provided.