aboutsummaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorAhmed <git@gumx.cc>2026-06-14 16:39:16 +0300
committerAhmed <git@gumx.cc>2026-06-14 16:39:16 +0300
commit4cace2f42208bc54298894d4bc0988b165bd73da (patch)
tree2f4a2d181116fe63c00f168747cd7a73e753e321 /hooks
parent5a8d568931d9b23ce0df1265d05259a7012081c9 (diff)
add: hooks, documentation, and other vibed edits
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"