Skip to content

Commit eb12616

Browse files
fix: cd (#5)
1 parent 808cc73 commit eb12616

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ permissions:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: docs
1720
strategy:
1821
matrix:
1922
node-version: [22.15.0]
@@ -43,23 +46,23 @@ jobs:
4346
uses: actions/cache@v4
4447
with:
4548
path: |
46-
docs/.next/cache
49+
.next/cache
4750
# Generate a new cache whenever packages or source files change.
48-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('docs/**.[jt]s', 'docs/**.[jt]sx') }}
51+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
4952
# If source files changed but packages didn't, rebuild from a prior cache.
5053
restore-keys: |
5154
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
5255
5356
- name: Build with Next.js
54-
run: cd docs && pnpm build
57+
run: pnpm build
5558
env:
5659
NODE_ENV: production
5760
PAGES_BASE_PATH: ${{ steps.setup_pages.outputs.base_path }}
5861

5962
- name: Upload artifact
6063
uses: actions/upload-pages-artifact@v3
6164
with:
62-
path: docs/out
65+
path: out
6366

6467
deploy:
6568
environment:

0 commit comments

Comments
 (0)