This commit is contained in:
2026-05-15 11:06:05 +08:00
commit 304d8dbea3
5 changed files with 290 additions and 0 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Webhook 触发后执行的脚本
set -e
echo "==> [1/3] 拉取最新代码"
cd ~/web/xsinfo && git pull origin master
echo "==> [2/3] 构建静态网站"
npm run docs:build
echo "==> [3/3] 同步到部署目录"
cp -rf /home/xiaoshuai/web/xsinfo/docs/.vitepress/dist/* /www/xsinfo/
echo "==> 完成"