Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74d1e28

Browse files
committed
Update pages.yml
1 parent df0daa4 commit 74d1e28

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/pages.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name: Deploy to GitHub Pages
55
# Controls when the workflow will run
66
on:
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

0 commit comments

Comments
 (0)