From 004f2e9964c36e62b4da8d272cfd76c56dc81f1d Mon Sep 17 00:00:00 2001 From: Ahmed Date: Sun, 14 Jun 2026 16:24:32 +0300 Subject: init: coffee cups contributions tracker --- hooks/post-receive | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 hooks/post-receive (limited to 'hooks/post-receive') diff --git a/hooks/post-receive b/hooks/post-receive new file mode 100644 index 0000000..051bd55 --- /dev/null +++ b/hooks/post-receive @@ -0,0 +1,8 @@ +#!/bin/sh +set -e +WORK=/home/git/build/ccc +WEBROOT=/var/www/coffee.gumx.cc +mkdir -p "$WEBROOT/fonts" +cp "$WORK/ccc.html" "$WEBROOT/index.html" +rsync -rlptD "$WORK/fonts/" "$WEBROOT/fonts/" 2>/dev/null || true +echo "ccc deployed to coffee.gumx.cc" -- cgit v1.2.3