safsaf/.forgejo/workflows/build-website.yaml
Christopher Baines 08fa06f8f4
All checks were successful
/ test (push) Successful in 11s
Add missing logo to website
2026-04-14 10:32:01 +03:00

29 lines
964 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 .
cp ../safsaf-trunk/doc/logo.svg .
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