Pages doesn't allow for direct deployments. Has to go via git repo + webhooks.
We make static sites with our CMS and don't really want to integrate another thing into our workflow. Lots of CF and git API calls to automate the whole thing reliably. Thus, we're sticking with workers sites for now. Pages is an attractive offering, however.
barake|4 years ago
nagisa|4 years ago
* build the website and produce a GHA artifact packaged as a zip or somesuch;
* invoke Pages deploy hook API endpoint;
* within cloudflare pages run a (e.g. python) script to download the artifact, decompress it and place the resulting files in the correct output directory.
Ideally these kinds of gymnastics wouldn't be necessary and it would be possible to just run something like `cfpages deploy .` but it is not absolutely impossible to get something working, either.