~sircmpwn/pages.sr.ht-examples

b28a71329aa8ff1ab0e785dd7ad7b01ffeaa321d — Filip Lajszczak 2 years ago 6979815
Add Haunt example

Haunt (https://dthompson.us/projects/haunt.html) is a simple, functional,
hackable static site generator that gives authors the ability to treat
websites as Scheme programs.

The manifest is using Guix as build environment, as it has all the Guile
bits and pieces required for Haunt to work.
1 files changed, 19 insertions(+), 0 deletions(-)

A haunt.yml
A haunt.yml => haunt.yml +19 -0
@@ 0,0 1,19 @@
image: guix
packages:
  - haunt
  # you may need guile-commonmark for optional Markdown support
  - guile-commonmark
  # you may need guile-reader for optional Skribe support
  - guile-reader
oauth: pages.sr.ht/PAGES:RW
environment:
  site: example.org
tasks:
- package: |
    # assuming that your repository name is the same as site domain
    cd $site
    haunt build
    tar -C site -cvz . > ../site.tar.gz
- upload: |
    acurl -f https://pages.sr.ht/publish/$site -Fcontent=@site.tar.gz