mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
14 lines
332 B
Bash
Executable File
14 lines
332 B
Bash
Executable File
#!/bin/bash
|
|
# Deploys the retro version of the website. Ran the same way as the branch deploy.
|
|
set -u
|
|
|
|
TARGET_FOLDER=$(realpath $1)
|
|
BASE_URL="$2"
|
|
|
|
# Arguments to add to the Hugo call
|
|
HUGO_ARGUMENTS="--gc"
|
|
|
|
# Pull the updates and run Hugo
|
|
git pull
|
|
hugo --quiet ${HUGO_ARGUMENTS} -b "${BASE_URL}" -d "${TARGET_FOLDER}" -t "lhs-retro"
|