Skip to content

Commit 909dc54

Browse files
author
tac0turtle
committed
fixes
1 parent 1342895 commit 909dc54

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/docs_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ jobs:
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

.github/workflows/docs_deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/docs_preview.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)