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