@@ -3,7 +3,7 @@ name: Deploy Next.js site to Pages
33on :
44 # Runs on pushes targeting the default branch
55 push :
6- branches : ["main"]
6+ branches : ["main", "upgrade" ]
77
88 # Allows you to run this workflow manually from the Actions tab
99 workflow_dispatch :
2525 runs-on : ubuntu-latest
2626 steps :
2727 - name : Checkout
28- uses : actions/checkout@v3
28+ uses : actions/checkout@v4
2929 - name : Detect package manager
3030 id : detect-package-manager
3131 run : |
@@ -40,24 +40,24 @@ jobs:
4040 echo "runner=npx --no-install" >> $GITHUB_OUTPUT
4141 exit 0
4242 else
43- echo "Unable to determine packager manager"
43+ echo "Unable to determine package manager"
4444 exit 1
4545 fi
4646 - name : Setup Node
47- uses : actions/setup-node@v3
47+ uses : actions/setup-node@v4
4848 with :
49- node-version : " 16 "
49+ node-version : " 20 "
5050 cache : ${{ steps.detect-package-manager.outputs.manager }}
5151 - name : Setup Pages
52- uses : actions/configure-pages@v3
52+ uses : actions/configure-pages@v5
5353 with :
5454 # Automatically inject basePath in your Next.js configuration file and disable
5555 # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
5656 #
5757 # You may remove this line if you want to manage the configuration yourself.
5858 static_site_generator : next
5959 - name : Restore cache
60- uses : actions/cache@v3
60+ uses : actions/cache@v4
6161 with :
6262 path : |
6363 .next/cache
7070 run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7171 - name : Build with Next.js
7272 run : ${{ steps.detect-package-manager.outputs.runner }} next build
73- - name : Static HTML export with Next.js
74- run : ${{ steps.detect-package-manager.outputs.runner }} next export
7573 - name : Upload artifact
76- uses : actions/upload-pages-artifact@v1
74+ uses : actions/upload-pages-artifact@v3
7775 with :
7876 path : ./out
7977
8785 steps :
8886 - name : Deploy to GitHub Pages
8987 id : deployment
90- uses : actions/deploy-pages@v1
88+ uses : actions/deploy-pages@v4
0 commit comments