Skip to content

Commit ee07b44

Browse files
committed
update workflow.
1 parent 0b8445e commit ee07b44

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.github/workflows/nextjs.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v3
2929
- name: Setup Node
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version: "20"
33-
cache: ${{ steps.detect-package-manager.outputs.manager }}
3433
- name: Setup Pages
35-
uses: actions/configure-pages@v2
36-
with:
37-
static_site_generator: next
34+
uses: actions/configure-pages@v4
3835
- name: Restore cache
3936
uses: actions/cache@v3
4037
with:
@@ -48,13 +45,11 @@ jobs:
4845
- name: Install dependencies
4946
run: npm install
5047
- name: Build with Next.js
51-
run: |
52-
npm run build
53-
npm run export
48+
run: npm run build
5449
env:
5550
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
5651
- name: Upload artifact
57-
uses: actions/upload-pages-artifact@v3.0.1
52+
uses: actions/upload-pages-artifact@v3
5853
with:
5954
path: ./out
6055

@@ -68,4 +63,4 @@ jobs:
6863
steps:
6964
- name: Deploy to GitHub Pages
7065
id: deployment
71-
uses: actions/deploy-pages@v4.0.5
66+
uses: actions/deploy-pages@v4

next.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
output: "export",
4-
images: {
5-
unoptimized: true,
6-
},
74
};
85

96
module.exports = nextConfig;

0 commit comments

Comments
 (0)