safsaf/.forgejo/workflows/build-website.yaml
Christopher Baines 5b0e6397dc
All checks were successful
/ test (push) Successful in 9s
Initial commit
Safsaf is a Guile web framework, written using Claude Code running
Claude Opus 4.6, based off of the Guix Data Service, Nar Herder and
Guix Build Coordinator codebases.
2026-04-13 14:24:19 +03:00

28 lines
920 B
YAML

on:
push:
branches:
- trunk
jobs:
test:
runs-on: host
steps:
- run: git clone --depth=1 https://$FORGEJO_TOKEN@forge.cbaines.net/cbaines/safsaf.git safsaf-trunk
- run: git clone --depth=1 https://$FORGEJO_TOKEN@forge.cbaines.net/cbaines/safsaf.git --branch=pages safsaf-pages
- run: |
cd safsaf-trunk
guix shell -D -f guix-dev.scm -- ./bootstrap.sh
guix shell -D -f guix-dev.scm -- ./configure
guix shell -D -f guix-dev.scm -- make -C doc index.html
- run: |
cd safsaf-pages
cp ../safsaf-trunk/doc/index.html .
git add .
if [[ -z "$(git status -s)" ]]; then
echo "Nothing to push"
else
git config user.email ""
git config user.name "Automatic website updater"
git commit -m "Automatic website update"
git push
fi