File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff 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 :
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 :
9093 steps :
9194 - name : Deploy to GitHub Pages
9295 id : deployment
93- uses : actions/deploy-pages@v4
96+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments