Skip to content

Commit fcda9ba

Browse files
committed
update deploy-docs.yml
1 parent d9aa1f2 commit fcda9ba

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- main # 或者你的主分支名称
7-
paths:
8-
- 'qwen-agent-docs/website/**'
97
workflow_dispatch: # 允许手动触发
108

119
permissions:
@@ -33,10 +31,10 @@ jobs:
3331
with:
3432
node-version: '18'
3533
cache: 'npm'
36-
cache-dependency-path: 'qwen-agent-docs/website/package-lock.json'
34+
cache-dependency-path: 'qwen-agent-docs/website/package-lock.json' # 添加这一行
3735

3836
- name: Install dependencies
39-
run: npm ci
37+
run: npm install
4038

4139
- name: Build website
4240
run: npm run build
@@ -46,7 +44,7 @@ jobs:
4644
- name: Upload artifact
4745
uses: actions/upload-pages-artifact@v3
4846
with:
49-
path: qwen-agent-docs/website/out
47+
path: "qwen-agent-docs/website/out/" # 注意这里也要加上完整路径
5048

5149
deploy:
5250
environment:
@@ -57,5 +55,4 @@ jobs:
5755
steps:
5856
- name: Deploy to GitHub Pages
5957
id: deployment
60-
uses: actions/deploy-pages@v4
61-
58+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)