Repository navigation
Publish the wiki to Cloudflare Pages from the workflow pages - #214
Merged
Merged
Conversation
tamnd
enabled auto-merge (squash)
November 2, 2026 09:11
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.
The wiki at https://math2.tamnd.com is at commit 685abbf of 31 October, with 3466 nodes. The build server that runs scripts/deploy-cloudflare.sh stopped after that commit. Main has 7806 nodes now.
This PR adds the job cloudflare to the workflow pages. The job builds the wiki with the URL https://math2.tamnd.com and the flag -cloudflare, as the script does, and it checks the limits of Cloudflare Pages (19500 files, 24 MB for each file). Then it publishes the site with wrangler to the project math2. The job needs the secrets CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID. When they are not set, the job builds the site, gives a warning and does not publish it. So the job is safe to merge before the secrets are set.
A local build of main with the same command gives 1345 files and 575 MB, with no file over 24 MB.