Skip to content

Commit 1419012

Browse files
authored
Update deploy.yml
1 parent d8d09c2 commit 1419012

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Deploy Next.js site to Pages
1+
name: Deploy Next.js to Pages
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [main]
66
workflow_dispatch:
77

88
permissions:
@@ -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:

0 commit comments

Comments
 (0)