@@ -18,19 +18,18 @@ permissions:
18
18
pages : write
19
19
id-token : write
20
20
21
- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22
- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21
+ # Allow one concurrent deployment
23
22
concurrency :
24
23
group : " pages"
25
- cancel-in-progress : false
24
+ cancel-in-progress : true
26
25
27
26
jobs :
28
27
# Build job
29
28
build :
30
29
runs-on : ubuntu-latest
31
30
steps :
32
31
- name : Checkout
33
- uses : actions/checkout@v4
32
+ uses : actions/checkout@v3
34
33
- name : Detect package manager
35
34
id : detect-package-manager
36
35
run : |
@@ -45,24 +44,24 @@ jobs:
45
44
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
46
45
exit 0
47
46
else
48
- echo "Unable to determine package manager"
47
+ echo "Unable to determine packager manager"
49
48
exit 1
50
49
fi
51
50
- name : Setup Node
52
- uses : actions/setup-node@v4
51
+ uses : actions/setup-node@v3
53
52
with :
54
- node-version : " 20 "
53
+ node-version : " 16 "
55
54
cache : ${{ steps.detect-package-manager.outputs.manager }}
56
55
- name : Setup Pages
57
- uses : actions/configure-pages@v4
56
+ uses : actions/configure-pages@v2
58
57
with :
59
58
# Automatically inject basePath in your Next.js configuration file and disable
60
59
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
61
60
#
62
61
# You may remove this line if you want to manage the configuration yourself.
63
62
static_site_generator : next
64
63
- name : Restore cache
65
- uses : actions/cache@v4
64
+ uses : actions/cache@v3
66
65
with :
67
66
path : |
68
67
.next/cache
75
74
run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
76
75
- name : Build with Next.js
77
76
run : ${{ steps.detect-package-manager.outputs.runner }} next build
78
- - name : Static HTML export with Next.js
79
- run : ${{ steps.detect-package-manager.outputs.runner }} next export
80
77
- name : Upload artifact
81
- uses : actions/upload-pages-artifact@v3
78
+ uses : actions/upload-pages-artifact@v1
82
79
with :
83
80
path : ./out
84
81
92
89
steps :
93
90
- name : Deploy to GitHub Pages
94
91
id : deployment
95
- uses : actions/deploy-pages@v4
92
+ uses : actions/deploy-pages@v1
0 commit comments