Commit 3bf5ded 1 parent 35b1f92 commit 3bf5ded Copy full SHA for 3bf5ded
File tree 1 file changed +9
-28
lines changed
1 file changed +9
-28
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
jobs :
9
- build :
10
- name : Build
9
+ deploy :
11
10
runs-on : ubuntu-latest
12
-
13
11
steps :
14
- - name : Checkout repo
12
+ - name : Checkout code
15
13
uses : actions/checkout@v3
16
14
17
- - name : Setup Node
15
+ - name : Set up Node.js
18
16
uses : actions/setup-node@v3
17
+ with :
18
+ node-version : 20
19
19
20
20
- name : Install dependencies
21
- uses : bahmutov/ npm- install@v1
22
-
23
- - name : Build project
21
+ run : npm install
22
+
23
+ - name : Build Project
24
24
run : npm run build
25
25
26
- - name : Upload production-ready build files
27
- uses : actions/upload-artifact@v3
28
- with :
29
- name : production-files
30
- path : ./dist
31
-
32
- deploy :
33
- name : Deploy
34
- needs : build
35
- runs-on : ubuntu-latest
36
- if : github.ref == 'refs/heads/master'
37
-
38
- steps :
39
- - name : Download artifact
40
- uses : actions/download-artifact@v3
41
- with :
42
- name : production-files
43
- path : ./dist
44
-
45
26
- name : Deploy to GitHub Pages
46
27
uses : peaceiris/actions-gh-pages@v3
47
28
with :
48
29
github_token : ${{ secrets.GITHUB_TOKEN }}
49
- publish_dir : ./dist
30
+ publish_dir : ./dist
You can’t perform that action at this time.
0 commit comments