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