3030 runs-on : ubuntu-latest
3131 steps :
3232 - name : Checkout
33- uses : actions/checkout@v3
33+ uses : actions/checkout@v4
3434 - name : Detect package manager
3535 id : detect-package-manager
3636 run : |
@@ -49,21 +49,20 @@ jobs:
4949 exit 1
5050 fi
5151 - name : Setup Node
52- uses : actions/setup-node@v3
52+ uses : actions/setup-node@v4
5353 with :
54- node-version : " 16 "
54+ node-version : " 20 "
5555 cache : ${{ steps.detect-package-manager.outputs.manager }}
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
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
6564 - name : Restore cache
66- uses : actions/cache@v3
65+ uses : actions/cache@v4
6766 with :
6867 path : |
6968 .next/cache
7675 run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7776 - name : Build with Next.js
7877 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
8178 - name : Upload artifact
82- uses : actions/upload-pages-artifact@v2
79+ uses : actions/upload-pages-artifact@v3
8380 with :
8481 path : ./out
8582
9390 steps :
9491 - name : Deploy to GitHub Pages
9592 id : deployment
96- uses : actions/deploy-pages@v3
93+ uses : actions/deploy-pages@v4
0 commit comments