Clone in a terminal:
push.sh
examples/main-component/ - Morebench marks, speed this time
#!/bin/sh
set -eu

./build.sh

: "${DEPLOY_USER:?Set DEPLOY_USER to the SSH user on git.kajacode.com}"
: "${DEPLOY_PATH:?Set DEPLOY_PATH to the Caddy-served folder}"

rsync -av --delete \
    pkg/ \
    "${DEPLOY_USER}@git.kajacode.com:${DEPLOY_PATH}/"

if [ -n "${GIT_REMOTE:-}" ]; then
    git push "${GIT_REMOTE}" "${GIT_BRANCH:-main}"
fi

File history (1 commits)

ed76499 Johan Mattsson - johan.mattsson.m@gmail.com
Morebench marks, speed this time
Morebench marks, speed this time

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112