File tree Expand file tree Collapse file tree 2 files changed +57
-34
lines changed Expand file tree Collapse file tree 2 files changed +57
-34
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to Pages
2
+
3
+ on :
4
+ push :
5
+ branches : [master, main]
6
+
7
+ workflow_dispatch :
8
+
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ concurrency :
15
+ group : pages
16
+ cancel-in-progress : false
17
+
18
+ jobs :
19
+ Build :
20
+ runs-on : ubuntu-latest
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
24
+ with :
25
+ fetch-depth : 0
26
+
27
+ - name : Setup Node
28
+ uses : actions/setup-node@v4
29
+ with :
30
+ node-version : 20
31
+ cache : npm
32
+
33
+ - name : Setup Pages
34
+ uses : actions/configure-pages@v4
35
+
36
+ - name : Install dependencies
37
+ run : npm ci
38
+
39
+ - name : Build with Vite
40
+ run : |
41
+ npm run build
42
+ - name : Upload artifact
43
+ uses : actions/upload-pages-artifact@v3
44
+ with :
45
+ path : dist
46
+
47
+ deploy :
48
+ environment :
49
+ name : github-pages
50
+ url : ${{ steps.deployment.outputs.page_url }}
51
+ needs : Build
52
+ runs-on : ubuntu-latest
53
+ name : Deploy
54
+ steps :
55
+ - name : Deploy to GitHub Pages
56
+ id : deployment
57
+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments