aboutsummaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-receive7
1 files changed, 7 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
new file mode 100644
index 0000000..b3164b0
--- /dev/null
+++ b/hooks/post-receive
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+WORK=/home/git/build/irc-bots
+OUT=/home/git/build/irc-bots-out
+python3 "$WORK/scripts/gen_bots.py" "$WORK" "$OUT"
+rsync -rlptD --delete "$OUT/" /var/www/irc.gumx.cc/bots/
+echo "irc-bots deployed"