File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ name: Deploy Next.js site to Pages
7
7
on :
8
8
# Runs on pushes targeting the default branch
9
9
push :
10
- branches : [" main" ]
10
+ branches : [' main' ]
11
11
12
12
# Allows you to run this workflow manually from the Actions tab
13
13
workflow_dispatch :
@@ -21,13 +21,14 @@ permissions:
21
21
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22
22
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
23
23
concurrency :
24
- group : " pages"
24
+ group : ' pages'
25
25
cancel-in-progress : false
26
26
27
27
jobs :
28
28
# Build job
29
29
build :
30
30
runs-on : ubuntu-latest
31
+ environment : testnet
31
32
steps :
32
33
- name : Checkout
33
34
uses : actions/checkout@v4
51
52
- name : Setup Node
52
53
uses : actions/setup-node@v4
53
54
with :
54
- node-version : " 20 "
55
+ node-version : ' 20 '
55
56
cache : ${{ steps.detect-package-manager.outputs.manager }}
56
57
- name : Setup Pages
57
58
uses : actions/configure-pages@v5
74
75
- name : Install dependencies
75
76
run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
76
77
- name : Build with Next.js
77
- run : ${{ steps.detect-package-manager.outputs.runner }} next build
78
+ run : ${{ steps.detect-package-manager.outputs.manager }} run build
78
79
- name : Upload artifact
79
80
uses : actions/upload-pages-artifact@v3
80
81
with :
You can’t perform that action at this time.
0 commit comments