Skip to content

Commit b0503b4

Browse files
committed
Update GitHub Actions to latest versions
1 parent 237c22d commit b0503b4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎.github/workflows/nextjs.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
permissions: write-all
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636
- name: Detect package manager
3737
id: detect-package-manager
3838
run: |
@@ -51,20 +51,20 @@ jobs:
5151
exit 1
5252
fi
5353
- name: Setup Node
54-
uses: actions/setup-node@v3
54+
uses: actions/setup-node@v4
5555
with:
56-
node-version: "16"
56+
node-version: "20"
5757
cache: ${{ steps.detect-package-manager.outputs.manager }}
5858
- name: Setup Pages
59-
uses: actions/configure-pages@v3
59+
uses: actions/configure-pages@v5
6060
with:
6161
# Automatically inject basePath in your Next.js configuration file and disable
6262
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
6363
#
6464
# You may remove this line if you want to manage the configuration yourself.
6565
static_site_generator: next
6666
- name: Restore cache
67-
uses: actions/cache@v3
67+
uses: actions/cache@v4
6868
with:
6969
path: |
7070
.next/cache
@@ -80,14 +80,14 @@ jobs:
8080
- name: Static HTML export with Next.js
8181
run: ${{ steps.detect-package-manager.outputs.runner }} next export
8282
- name: Upload artifact
83-
uses: actions/upload-pages-artifact@v1
83+
uses: actions/upload-pages-artifact@v3
8484
with:
8585
path: ./out
8686
- name: Set up environment variables
8787
run: echo "GA_ID=${{ secrets.GA_ID }}" >> $GITHUB_ENV
8888
- name: Deploy to GitHub Pages
8989
id: deployment
90-
uses: actions/deploy-pages@v2
90+
uses: actions/deploy-pages@v4
9191
env:
9292
GA_ID: ${{ secrets.GA_ID }}
9393

0 commit comments

Comments
 (0)