File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1111 build :
1212 name : Build Docusaurus
1313 runs-on : ubuntu-latest
14+ defaults :
15+ run :
16+ working-directory : website # 设置默认工作目录
1417 steps :
1518 - uses : actions/checkout@v4
1619 with :
@@ -19,16 +22,18 @@ jobs:
1922 with :
2023 node-version : 22
2124 cache : yarn
25+ cache-dependency-path : website/yarn.lock # 指定 yarn.lock 的路径
2226
2327 - name : Install dependencies
24- run : cd website && yarn install --frozen-lockfile
28+ run : yarn install --frozen-lockfile
29+
2530 - name : Build website
26- run : cd website && yarn build
31+ run : yarn build
2732
2833 - name : Upload Build Artifact
2934 uses : actions/upload-pages-artifact@v3
3035 with :
31- path : website/build
36+ path : website/build # 构建输出路径
3237
3338 deploy :
3439 name : Deploy to GitHub Pages
You can’t perform that action at this time.
0 commit comments