Skip to content

Commit 6353ca8

Browse files
committed
fix: action version update
1 parent 89148bf commit 6353ca8

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/nextjs.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@ jobs:
5353
with:
5454
node-version: "20"
5555
cache: ${{ steps.detect-package-manager.outputs.manager }}
56-
- name: Setup Pages
57-
uses: actions/configure-pages@v5
58-
with:
59-
# Automatically inject basePath in your Next.js configuration file and disable
60-
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
61-
#
62-
# You may remove this line if you want to manage the configuration yourself.
63-
static_site_generator: next
56+
# - name: Setup Pages
57+
# uses: actions/configure-pages@v3
58+
# with:
59+
# # Automatically inject basePath in your Next.js configuration file and disable
60+
# # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
61+
# #
62+
# # You may remove this line if you want to manage the configuration yourself.
63+
# static_site_generator: next
64+
#Removed, configuring basePath using method in https://fedeantuna.github.io/article/deploy-nextjs-app-to-github-pages
6465
- name: Restore cache
6566
uses: actions/cache@v4
6667
with:
@@ -75,6 +76,8 @@ jobs:
7576
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7677
- name: Build with Next.js
7778
run: ${{ steps.detect-package-manager.outputs.runner }} next build
79+
- name: Static HTML export with Next.js
80+
run: ${{ steps.detect-package-manager.outputs.runner }} next export
7881
- name: Upload artifact
7982
uses: actions/upload-pages-artifact@v3
8083
with:
@@ -90,4 +93,4 @@ jobs:
9093
steps:
9194
- name: Deploy to GitHub Pages
9295
id: deployment
93-
uses: actions/deploy-pages@v4
96+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)