From b97022c6fd5351215adabfa90ef9c5c191ad8b7c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 22 Apr 2026 13:41:59 +0200 Subject: Chore: added WORKFLOW.md and updated git-post-receive hook --- git-post-receive | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'git-post-receive') diff --git a/git-post-receive b/git-post-receive index c8062a1..b2c61be 100644 --- a/git-post-receive +++ b/git-post-receive @@ -3,7 +3,7 @@ # theme repository THEME_REPO=$HOME/repositories/danix2-hugo-theme.git # repository logical name -REPO="danix.xyz" +REPO="danix.xyz-2" # Directory where to work on our site TARGET_DIR=/tmp/danix.xyz-compile GIT_DIR=$HOME/repositories/${REPO}.git @@ -67,8 +67,8 @@ do git --git-dir=$GIT_DIR --work-tree=. -C "$TARGET_DIR" checkout -f log "Cloning theme from $THEME_REPO" - git clone $THEME_REPO ${TARGET_DIR}/themes/dagreynix - log "Theme cloned at commit: $(git -C ${TARGET_DIR}/themes/dagreynix rev-parse --short HEAD)" + git clone $THEME_REPO ${TARGET_DIR}/themes/danix-xyz-hacker + log "Theme cloned at commit: $(git -C ${TARGET_DIR}/themes/danix-xyz-hacker rev-parse --short HEAD)" log "Clearing $PUBLIC_WWW" rm -rf $PUBLIC_WWW/* @@ -77,7 +77,7 @@ do git tag release_$NOW $BRANCH log "Running Hugo build..." - /usr/local/bin/hugo -s $TARGET_DIR -d $PUBLIC_WWW -b "${SITE_DOMAIN}" -t "dagreynix" --noTimes --minify + /usr/local/bin/hugo -s $TARGET_DIR -d $PUBLIC_WWW -b "${SITE_DOMAIN}" -t "danix-xyz-hacker" --noTimes --minify log "Hugo build complete." log "========================================" -- cgit v1.2.3