File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ permissions:
14
14
jobs :
15
15
build :
16
16
runs-on : ubuntu-latest
17
+ defaults :
18
+ run :
19
+ working-directory : docs
17
20
strategy :
18
21
matrix :
19
22
node-version : [22.15.0]
@@ -43,23 +46,23 @@ jobs:
43
46
uses : actions/cache@v4
44
47
with :
45
48
path : |
46
- docs/ .next/cache
49
+ .next/cache
47
50
# 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') }}
49
52
# If source files changed but packages didn't, rebuild from a prior cache.
50
53
restore-keys : |
51
54
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
52
55
53
56
- name : Build with Next.js
54
- run : cd docs && pnpm build
57
+ run : pnpm build
55
58
env :
56
59
NODE_ENV : production
57
60
PAGES_BASE_PATH : ${{ steps.setup_pages.outputs.base_path }}
58
61
59
62
- name : Upload artifact
60
63
uses : actions/upload-pages-artifact@v3
61
64
with :
62
- path : docs/ out
65
+ path : out
63
66
64
67
deploy :
65
68
environment :
You can’t perform that action at this time.
0 commit comments