2024-04-18 14:20:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
# Update git repo
|
2024-10-16 09:41:44 +00:00
|
|
|
git_update.sh -d "$HTTP_DIR" -r "${GIT_SOURCE_BRANCH:-main}" "$GIT_SOURCE_REPO"
|
2024-04-18 14:20:53 +00:00
|
|
|
|
|
|
|
cd "$HTTP_DIR"
|
|
|
|
|
|
|
|
# Get remote content files
|
|
|
|
rclone_ncloud_publiclink.sh
|
|
|
|
|
|
|
|
# Invalid cache
|
|
|
|
#rm -rf "/tmp/hugo_cache_$USER"
|
|
|
|
|
2024-06-15 15:59:53 +00:00
|
|
|
cd themes/blist
|
2024-04-18 14:20:53 +00:00
|
|
|
npm install
|
|
|
|
cd ../..
|
2024-06-15 15:59:53 +00:00
|
|
|
npm install postcss-cli
|
2024-04-18 14:20:53 +00:00
|
|
|
|
|
|
|
# Build website
|
|
|
|
HUGO_CACHEDIR="/tmp/hugo_cache_$USER" hugo
|