Skip to content

Commit 3511905

Browse files
committed
Adding Deploying github workflow
1 parent 26b7135 commit 3511905

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@master
14+
- name: Get the list of modified files only & Generate installers
15+
uses: technote-space/get-diff-action@v1
16+
run: pip install toml && python generate.py ${{ env.GIT_DIFF }}
17+
- name: Archive Production Artifact
18+
uses: actions/upload-artifact@master
19+
with:
20+
name: installers
21+
path: installers
22+
deploy:
23+
name: Deploy
24+
needs: build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout Repo
28+
uses: actions/checkout@master
29+
- name: Download Artifact
30+
uses: actions/download-artifact@master
31+
with:
32+
name: installers
33+
path: installers
34+
- name: Deploy to Firebase
35+
uses: w9jds/firebase-action@master
36+
with:
37+
args: deploy --only storage
38+
env:
39+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 commit comments

Comments
 (0)