Deploy

Deploy the generated public directory anywhere that serves static files.

Leaf outputs static files. That means deployment is wonderfully boring.

code
leaf build

Upload the public/ directory to any static host:

  • GitHub Pages
  • Netlify
  • Cloudflare Pages
  • a plain web server

For GitHub Pages, the shape is:

code
- run: donna build
- run: cd website && ../build/bin/leaf build
- uses: actions/upload-pages-artifact@v3
  with:
    path: website/public

The important detail is simple: deploy the generated directory, not the source content.

Leaf does the cooking. Your host only serves the plate.