summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-10-21 11:12:16 +0800
committerEltrac <hi@guhub.cn>2025-10-21 11:12:16 +0800
commite1bc41f5014565d1f3a2f26deccce1932fbd24fd (patch)
tree3b7ddbf8db5661d2e5dc959410ce92379236b2af /build.sh
parent802a8e883897a70a40f23ae1cbf60823482f5a3e (diff)
chore(CI/CD): rewrite pre-build Python scripts with Go
Former-commit-id: fbd878474f1af38605090307571c03b8409a077c
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 41ad7777..1e59e673 100644
--- a/build.sh
+++ b/build.sh
@@ -19,7 +19,7 @@ main() {
# ===== Install All Dependencies ===== #
- echo "🏗️ Installing all dependencies...\n"
+ echo "🏗️ Installing all dependencies..."
# Install Python
echo "Installing Python ${PYTHON_VERSION}..."
@@ -59,8 +59,11 @@ main() {
# ===== Execute Pre-Hugo Actions ===== #
- echo "🏗️ Executing Python Scripts..."
- python3 scripts/run_scripts.py
+ echo "🏗️ Building and Running Custom Go Scripts"
+ go build -o extract_highlights extract_highlights.go
+ go build -o extract_links extract_links.go
+ ./extract_highlights
+ ./extract_links
echo "🏗️ Building UnoCSS..."
npm run build:uno:prod