diff options
| author | Christian Cleberg <[email protected]> | 2025-04-30 22:24:42 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2025-04-30 22:24:42 -0500 |
| commit | 1bbf072da3c52289dcd89acd7b93eab489b18d14 (patch) | |
| tree | 8d176b6de9a1f07db64954266e3d419571767aa3 /utils | |
| parent | e72ef5b6cabe7f76f44ae22da8c92a20b8ef4c34 (diff) | |
| download | cleberg.net-1bbf072da3c52289dcd89acd7b93eab489b18d14.tar.gz cleberg.net-1bbf072da3c52289dcd89acd7b93eab489b18d14.tar.bz2 cleberg.net-1bbf072da3c52289dcd89acd7b93eab489b18d14.zip | |
remove github actions and hooks
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/hooks/post-checkout | 3 | ||||
| -rw-r--r-- | utils/hooks/post-commit | 16 | ||||
| -rw-r--r-- | utils/hooks/post-push | 29 |
3 files changed, 0 insertions, 48 deletions
diff --git a/utils/hooks/post-checkout b/utils/hooks/post-checkout deleted file mode 100644 index 811a483..0000000 --- a/utils/hooks/post-checkout +++ /dev/null @@ -1,3 +0,0 @@ -# .git/hooks/post-checkout -#!/bin/bash -echo "You're now on branch $(git rev-parse --abbrev-ref HEAD)" diff --git a/utils/hooks/post-commit b/utils/hooks/post-commit deleted file mode 100644 index 3064dc6..0000000 --- a/utils/hooks/post-commit +++ /dev/null @@ -1,16 +0,0 @@ -# .git/hooks/post-commit -#!/bin/bash -echo "Environment: Development" - -# Remove previous build -rm -rf .build/* - -# Run publishing script -emacs --script publish.el - -# Minify CSS -minify -o theme/static/styles.min.css theme/static/styles.css - -# Launch development web server -cd .build/ -python3 -m http.server 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/ |
