File tree 1 file changed +29
-16
lines changed
1 file changed +29
-16
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
permissions :
9
- contents : write
9
+ contents : read
10
10
pages : write
11
11
id-token : write
12
12
13
13
jobs :
14
- build-and-deploy :
14
+ build :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - uses : actions/checkout@v3
17
+ - name : Checkout
18
+ uses : actions/checkout@v3
18
19
19
- - uses : actions/setup-node@v3
20
+ - name : Setup Node
21
+ uses : actions/setup-node@v3
20
22
with :
21
- node-version : 20
22
-
23
+ node-version : ' 20'
24
+ cache : ' npm'
25
+
23
26
- name : Install dependencies
24
27
run : npm ci
25
-
28
+
26
29
- name : Build
27
30
run : npm run build
28
-
31
+
29
32
- name : Add .nojekyll file
30
33
run : touch ./dist/.nojekyll
31
-
32
- - name : Deploy
33
- uses : JamesIves/github-pages-deploy-action@v4
34
+
35
+ - name : Setup Pages
36
+ uses : actions/configure-pages@v3
37
+
38
+ - name : Upload artifact
39
+ uses : actions/upload-pages-artifact@v2
34
40
with :
35
- folder : dist
36
- branch : gh-pages
37
- # The following line ensures proper MIME types
38
- clean-exclude : |
39
- .nojekyll
41
+ path : ' ./dist'
42
+
43
+ deploy :
44
+ needs : build
45
+ runs-on : ubuntu-latest
46
+ environment :
47
+ name : github-pages
48
+ url : ${{ steps.deployment.outputs.page_url }}
49
+ steps :
50
+ - name : Deploy to GitHub Pages
51
+ id : deployment
52
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments