File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 with :
2323 node-version : 20
2424 cache : yarn # or pnpm / npm
25+ cache-dependency-path : docs/yarn.lock
2526 - name : Install dependencies
2627 run : yarn install # or pnpm install / npm ci
28+ working-directory : docs
2729 - name : Build with VitePress
2830 run : yarn build # or pnpm build / npm build
31+ working-directory : docs
Original file line number Diff line number Diff line change @@ -37,15 +37,18 @@ jobs:
3737 with :
3838 node-version : 20
3939 cache : yarn # or pnpm / npm
40+ cache-dependency-path : docs/yarn.lock
4041 - name : Setup Pages
4142 uses : actions/configure-pages@v5
4243 - name : Install dependencies
4344 run : yarn install # or pnpm install / npm ci
45+ working-directory : docs
4446 - name : Build with VitePress
4547 run : yarn build # or pnpm build / npm build
48+ working-directory : docs
4649 - name : Deploy to GitHub Pages
4750 uses : peaceiris/actions-gh-pages@v4
4851 with :
4952 github_token : ${{ secrets.GITHUB_TOKEN }}
50- publish_dir : ./.vitepress/dist
53+ publish_dir : ./docs/ .vitepress/dist
5154 cname : ev.xyz
Original file line number Diff line number Diff line change @@ -28,17 +28,20 @@ jobs:
2828 with :
2929 node-version : 20
3030 cache : yarn
31+ cache-dependency-path : docs/yarn.lock
3132
3233 - name : Install dependencies
3334 run : yarn install --frozen-lockfile
35+ working-directory : docs
3436
3537 - name : Build with Base URL
3638 run : BASE='/docs-preview/pr-${{ github.event.number }}/' yarn build
39+ working-directory : docs
3740
3841 - name : Deploy preview
3942 uses : rossjrw/pr-preview-action@v1
4043 with :
41- source-dir : .vitepress/dist
44+ source-dir : docs/ .vitepress/dist
4245 deploy-repository : evstack/docs-preview
4346 token : ${{ secrets.PREVIEW_DEPLOY }}
4447 preview-branch : main
You can’t perform that action at this time.
0 commit comments