PreTeXtBook / pretext-cli

Command line interface for quickly creating, authoring, and building PreTeXt documents.
https://pretextbook.org
GNU General Public License v3.0
16 stars 15 forks source link

Document Cloudflare/GitHub Pages deploy by action #739

Open StevenClontz opened 2 weeks ago

StevenClontz commented 2 weeks ago

I'm also interested in adding support for Cloudflare Pages, where every push to a repository could be built and deployed to a preview URL, with merges to main going to the canonical URL. https://developers.cloudflare.com/pages/configuration/preview-deployments/

Originally posted by @StevenClontz in https://github.com/PreTeXtBook/pretext-cli/issues/725#issuecomment-2170611413

StevenClontz commented 2 weeks ago

https://developers.cloudflare.com/pages/framework-guides/deploy-anything/

StevenClontz commented 2 weeks ago

Experimenting at https://github.com/StevenClontz/cloudflare-pretext-test

StevenClontz commented 2 weeks ago

A basic build was possible, but we'll want to build using our GitHub Action (to have a full devcontainer for full builds). Following https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#use-github-actions to try this now.

StevenClontz commented 2 weeks ago

Demo in production at https://github.com/TeamBasedInquiryLearning/precalculus/pull/341

StevenClontz commented 2 weeks ago

Implemented at https://github.com/PreTeXtBook/pretext-cli/pull/746 but we need to add documentation so folks know how to set up their GitHub repos to use it.