Skip to content

Commit ed4bc08

Browse files
committed
更新同步脚本
1 parent 6a730a5 commit ed4bc08

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/sync-posts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Sync Posts from Notes Repo
2020
run: |
2121
# 清空现有文章
22-
rm -rf content/posts/*
22+
# rm -rf content/post/*
2323
2424
# 克隆笔记库的publish目录
2525
git clone --depth 1 --filter=blob:none --sparse https://${{ secrets.PAT }}@github.com/NilCent/codenote.git temp-notes
@@ -28,7 +28,7 @@ jobs:
2828
cd ..
2929
3030
# 复制文章到content/posts
31-
cp -r temp-notes/publish/* content/posts/
31+
cp -r temp-notes/publish/* content/post/
3232
rm -rf temp-notes
3333
3434
# 如果有图片等资源,也需要同步

content/posts/CS110L/first_post.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)