File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments