fixed 部署较慢的问题

This commit is contained in:
Vaica committed 2026-02-08 14:55:44 +08:00
1 parent 32e7973f34
commit d1af066139
97 files changed
+12101 -153

No files matched your search

+8 -3
View File
@@ -36,9 +36,13 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '22'
cache: 'npm'
- name: Install Node.js dependencies
run: npm install
run: npm ci
- name: Optimize Images
run: node scripts/optimize_images.js
- name: Generate AI Comments
env:
@@ -46,18 +50,19 @@ jobs:
AI_PROVIDER: siliconflow
run: node scripts/ai_comment.js
- name: Commit AI Comments
- name: Commit Optimized Images and AI Comments
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add content/post
if ! git diff --staged --quiet; then
git commit -m "chore: auto-generate ai comments [skip ci]"
git commit -m "chore: auto-optimize images and generate ai comments [skip ci]"
git push
else
echo "No changes to commit"
fi
- name: Generate Friend Circle Data
run: node scripts/generate_circle_data.js