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