fixed 部署较慢的问题
This commit is contained in:
1 parent
d7417879f8
commit
7ae53899f2
154 files changed
+12101
-153
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user