File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ name: Deploy to GitHub Pages
55# Controls when the workflow will run
66on :
77 # Triggers the workflow on push or pull request events but only for the main branch
8- push :
9- branches : [main]
10- pull_request :
11- branches : [main]
8+ # push:
9+ # branches: [main]
10+ # pull_request:
11+ # branches: [main]
1212
1313 # Allows you to run this workflow manually from the Actions tab
1414 workflow_dispatch :
@@ -28,25 +28,15 @@ jobs:
2828 # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
2929 fetch-depth : 0
3030
31- - name : Setup pnpm
32- uses : pnpm/action-setup@v2
33- with :
34- # 选择要使用的 pnpm 版本
35- version : 8
36- # 使用 pnpm 安装依赖
37- run_install : true
38-
3931 - name : Setup Node.js
4032 uses : actions/setup-node@v3
4133 with :
4234 # 选择要使用的 node 版本
4335 node-version : 18
44- # 缓存 pnpm 依赖
45- cache : pnpm
4636
4737 # 运行构建脚本
4838 - name : Build VuePress site
49- run : pnpm docs:build
39+ run : npm install && docs:build
5040
5141 # 查看 workflow 的文档来获取更多信息
5242 # @see https://github.com/crazy-max/ghaction-github-pages
You can’t perform that action at this time.
0 commit comments