Skip to content

Commit 7011050

Browse files
authored
Create deploy.yml
1 parent 94d1e82 commit 7011050

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/deploy.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 }}

0 commit comments

Comments
 (0)