File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 33.RData
44.Ruserdata
55* .sh
6- public /
6+ public /
7+ .last_push_time
Original file line number Diff line number Diff line change 99
1010# === 路径 ===
1111TYP_FILE=" notes/main.typ"
12+ BIB_FILE=" notes/Master.bib" # 新增 Bib 文件路径
1213OUT_DIR=" static/notes"
1314OUT_FILE=" ${OUT_DIR} /notes.pdf"
1415
@@ -58,7 +59,7 @@ DIFF=$(( NOW - LAST_PUSH ))
5859
5960if [ $DIFF -lt 600 ]; then
6061 echo " ⏳ 上次 push 距离现在仅 $DIFF 秒 (<600 秒),跳过 push。"
61- git add " $TYP_FILE " " $OUT_FILE "
62+ git add " $TYP_FILE " " $BIB_FILE " " $ OUT_FILE" # 添加 Bib 文件
6263 git commit -m " $COMMIT_MSG " > /dev/null 2>&1
6364 exit 0
6465fi
6768# === Git 操作 ===
6869echo " 📦 执行 git add/commit/push"
6970
70- git add " $TYP_FILE " " $OUT_FILE "
71+ # 添加所有相关文件,包括 Bib 文件
72+ git add " $TYP_FILE " " $BIB_FILE " " $OUT_FILE "
7173
7274git commit -m " $COMMIT_MSG "
7375if [ $? -ne 0 ]; then
@@ -81,3 +83,4 @@ if [ $? -eq 0 ]; then
8183 echo " ✅ Push 完成!GitHub Pages 将自动部署。"
8284else
8385 echo " ❌ Push 失败,请检查网络或权限。"
86+ fi
You can’t perform that action at this time.
0 commit comments