diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 13:41:59 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 13:41:59 +0200 |
| commit | b97022c6fd5351215adabfa90ef9c5c191ad8b7c (patch) | |
| tree | fa05b12ae27d7abeb8ce4602e662e523b0473e2e /git-post-receive | |
| parent | a23b07ea74e2956fd294184767027f749876ac36 (diff) | |
| download | danixxyz-b97022c6fd5351215adabfa90ef9c5c191ad8b7c.tar.gz danixxyz-b97022c6fd5351215adabfa90ef9c5c191ad8b7c.zip | |
Chore: added WORKFLOW.md and updated git-post-receive hookrelease_22042026-1342
Diffstat (limited to 'git-post-receive')
| -rw-r--r-- | git-post-receive | 8 |
1 files changed, 4 insertions, 4 deletions
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 "========================================" |
