File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Deploy
2
+ on :
3
+ release :
4
+ types : [published, edited]
5
+
6
+ jobs :
7
+ build :
8
+ name : Build
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout Repo
12
+ uses : actions/checkout@master
13
+ - name : Install Dependencies
14
+ run : |
15
+ cd simplq
16
+ npm install
17
+ - name : Build
18
+ run : npm run build
19
+ - name : Archive Production Artifact
20
+ uses : actions/upload-artifact@master
21
+ with :
22
+ name : build
23
+ path : build
24
+ deploy :
25
+ name : Deploy
26
+ needs : build
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - name : Checkout Repo
30
+ uses : actions/checkout@master
31
+ - name : Download Artifact
32
+ uses : actions/download-artifact@master
33
+ with :
34
+ name : dist
35
+ - name : Deploy to Firebase
36
+ uses : w9jds/firebase-action@master
37
+ with :
38
+ args : deploy --only hosting
39
+ env :
40
+ FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments