Skip to content

Commit

Permalink
ci: 修复博客数据未正常刷新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Jan 16, 2025
1 parent 139aef3 commit baadbcc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ jobs:
run_install: true

# 构建
- name: Build
run: pnpm build
- name: Refresh Blog Data
run: pnpm build-blog

- name: Build Site
run: pnpm build-vitepress

- name: Build lunaria
run: pnpm lunaria:build
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
run_install: true

# 构建
- name: Refresh Blog Data
run: pnpm build-blog

- name: Build
run: pnpm site:preview

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"build": "pnpm build-blog & pnpm build-vitepress",
"build-blog": "npx tsx ./scripts/refreshBlogData.ts",
"build-blog": "tsx ./scripts/refreshBlogData.ts",
"build-mpa": "vitepress build --mpa --base /docs/",
"build-vitepress": "vitepress build --base /docs/",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
Expand Down Expand Up @@ -126,6 +126,7 @@
"taze": "^0.16.9",
"tsconfig-paths": "^4.2.0",
"tsconfig-vuepress": "^5.2.1",
"tsx": "^4.19.2",
"vite": "^6.0.6",
"vite-plugin-inspect": "^0.8.9",
"zhlint": "^0.8.2"
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit baadbcc

Please sign in to comment.