File tree Expand file tree Collapse file tree 1 file changed +15
-31
lines changed Expand file tree Collapse file tree 1 file changed +15
-31
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy to GitHub Pages
1
+ name : Build and Deploy to GitHub Pages
2
2
3
3
on :
4
4
push :
5
5
branches : [ main ]
6
6
workflow_dispatch :
7
7
8
8
permissions :
9
- contents : read
10
- pages : write
11
- id-token : write
9
+ contents : write
12
10
13
11
jobs :
14
- build :
12
+ build-and-deploy :
15
13
runs-on : ubuntu-latest
16
-
17
14
steps :
18
- - name : Checkout repository
15
+ - name : Checkout 🛎️
19
16
uses : actions/checkout@v3
20
-
21
- - name : Set up Node.js
17
+
18
+ - name : Setup Node.js ⚙️
22
19
uses : actions/setup-node@v3
23
20
with :
24
21
node-version : 19
25
22
cache : ' npm'
26
-
27
- - name : Install dependencies
23
+
24
+ - name : Install dependencies 📦
28
25
run : npm ci
29
-
30
- - name : Build
26
+
27
+ - name : Build 🔧
31
28
run : npm run build
32
-
33
- - name : Setup Pages
34
- uses : actions/configure-pages@v3
35
-
36
- - name : Upload artifact
37
- uses : actions/upload-pages-artifact@v1
29
+
30
+ - name : Deploy 🚀
31
+ uses : JamesIves/github-pages-deploy-action@v4
38
32
with :
39
- path : ' ./dist'
40
-
41
- deploy :
42
- environment :
43
- name : github-pages
44
- url : ${{ steps.deployment.outputs.page_url }}
45
- runs-on : ubuntu-latest
46
- needs : build
47
- steps :
48
- - name : Deploy to GitHub Pages
49
- id : deployment
50
- uses : actions/deploy-pages@v2
33
+ folder : dist # The folder the action should deploy
34
+ branch : gh-pages # The branch the action should deploy to
You can’t perform that action at this time.
0 commit comments