File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Next.js site to Pages
1+ name : Deploy Next.js to Pages
22
33on :
44 push :
5- branches : [" main" ]
5+ branches : [main]
66 workflow_dispatch :
77
88permissions :
@@ -20,26 +20,22 @@ jobs:
2020 steps :
2121 - name : Checkout
2222 uses : actions/checkout@v4
23+
2324 - name : Setup Node.js
2425 uses : actions/setup-node@v4
2526 with :
26- node-version : " 20"
27- cache : npm
27+ node-version : ' 20'
28+ cache : ' npm'
29+
2830 - name : Setup Pages
2931 uses : actions/configure-pages@v4
30- with :
31- static_site_generator : next
32- - name : Restore cache
33- uses : actions/cache@v4
34- with :
35- path : .next/cache
36- key : ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
37- restore-keys : |
38- ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
32+
3933 - name : Install dependencies
4034 run : npm ci
41- - name : Build with Next.js
35+
36+ - name : Build
4237 run : npm run build
38+
4339 - name : Upload artifact
4440 uses : actions/upload-pages-artifact@v3
4541 with :
You can’t perform that action at this time.
0 commit comments