aboutsummaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-14 16:24:32 +0300
committerAhmed <git@gumx.cc>2026-06-14 16:24:32 +0300
commit004f2e9964c36e62b4da8d272cfd76c56dc81f1d (patch)
treebfc5d7a84c588c4fe1699f16a5a8c773fb1a322a /hooks
init: coffee cups contributions tracker
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-receive8
1 files changed, 8 insertions, 0 deletions
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"