Quarto Cloudflare Pages plugin #1776
Replies: 1 comment
-
If you want to use Quarto with Cloudflare Pages, you only need to make very small changes to your Github action: since pushing to the
Example on:
workflow_dispatch:
push:
branches: main
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Render
uses: quarto-dev/quarto-actions/render@v2
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: cf-pages
publish_dir: _site Then create the Pages application in your Cloudflare Pages dashboard and point it to the Adding a password to your pages siteYou can use CloudFlare Zero Access to add access control to your Pages application (free for up to 50 users), see https://developers.cloudflare.com/pages/platform/known-issues/#enable-access-on-your-pagesdev-domain. project:
type: website
resources:
- functions/
... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The Quarto Netlify plugin and GitHub Actions work great!
One other publisher we've been using a lot is Cloudflare Pages. It uses the same JAMstack model as Netlify, but it comes with some nice extras like free unlimited bandwidth and free access control for up to 50 users (although admittedly that can be a bit of a pain to configure).
Cloudflare Pages supports plugins. I'm admittedly not too clear on how differently they function to Netlify's build plugins, but anecdotes seem to indicate they're pretty similar! 😅
You can, of course, render locally and deploy the rendered folder to Pages (just like Netlify or any other static host), but I wanted to put it on your radar!
Beta Was this translation helpful? Give feedback.
All reactions