From 9f2643bd5789e9d4f65b1605f7a08bd71f5fe4b7 Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 30 Apr 2025 22:24:42 -0500 Subject: remove github actions and hooks --- utils/hooks/post-push | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 utils/hooks/post-push (limited to 'utils/hooks/post-push') diff --git a/utils/hooks/post-push b/utils/hooks/post-push deleted file mode 100644 index 4193037..0000000 --- a/utils/hooks/post-push +++ /dev/null @@ -1,29 +0,0 @@ -# .git/hooks/post-push -#!/bin/bash -echo "Environment: Production" - -# Check if publishing via LAN or remotely -printf "Publishing on remote or LAN? [r|l] " - -# Update ubuntu_server variable based on answer -read method -if [[ "$method" =~ ^[Rr]$ ]]; then - ubuntu_server="ubuntu-remote" -elif [[ "$method" =~ ^[Ll]$ ]]; then - ubuntu_server="ubuntu" -else - echo "Invalid input. Assuming LAN (ubuntu)" - ubuntu_server="ubuntu" -fi - -# Remove previous build -rm -rf .build/* - -# Run publishing script -emacs --script publish.el &>/dev/null - -# Minify CSS -minify -o theme/static/styles.min.css theme/static/styles.css - -# Deploy changes -rsync -r --delete-before .build/* $ubuntu_server:/var/www/cleberg.net/ -- cgit v1.2.3-70-g09d2