Skip to content

Commit e43c221

Browse files
author
Dan Costello
committed
WIP
1 parent bce4626 commit e43c221

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Detect package manager
3535
id: detect-package-manager
3636
run: |
37-
if [ -f "${{ github.workspace }}/pnpm-lock.yaml" ]; then
37+
if [ -f "${{ github.workspace }}/docs/pnpm-lock.yaml" ]; then
3838
echo "manager=pnpm" >> $GITHUB_OUTPUT
3939
echo "command=install" >> $GITHUB_OUTPUT
4040
echo "runner=pnpm" >> $GITHUB_OUTPUT
@@ -64,24 +64,24 @@ jobs:
6464
uses: actions/cache@v4
6565
with:
6666
path: |
67-
.next/cache
67+
docs/.next/cache
6868
# Generate a new cache whenever packages or source files change.
69-
key: ${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
69+
key: ${{ runner.os }}-nextjs-${{ hashFiles('docs/pnpm-lock.yaml') }}-${{ hashFiles('docs/**.[jt]s', 'docs/**.[jt]sx') }}
7070
# If source files changed but packages didn't, rebuild from a prior cache.
7171
restore-keys: |
72-
${{ runner.os }}-nextjs-${{ hashFiles('pnpm-lock.yaml') }}-
72+
${{ runner.os }}-nextjs-${{ hashFiles('docs/pnpm-lock.yaml') }}-
7373
- name: Install dependencies
7474
run: |
7575
cd docs
7676
pnpm install
7777
- name: Build with Next.js
7878
run: |
7979
cd docs
80-
pnpm next build
80+
pnpm run build
8181
- name: Upload artifact
8282
uses: actions/upload-pages-artifact@v3
8383
with:
84-
path: ./out
84+
path: ./docs/out
8585

8686
# Deployment job
8787
deploy:

0 commit comments

Comments
 (0)