Skip to content

Commit 769a41a

Browse files
committed
Create deploy.yml
1 parent 676d170 commit 769a41a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
paths-ignore:
8+
- ".gitignore"
9+
- "LICENSE"
10+
- "README*"
11+
12+
pull_request:
13+
14+
jobs:
15+
deploy:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v2
21+
22+
- name: Set Up Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18
26+
27+
- name: Install Dependencies
28+
run: |
29+
cd functions
30+
npm install
31+
32+
- id: "auth"
33+
uses: "google-github-actions/auth@v2"
34+
with:
35+
workload_identity_provider: ${{ secrets.workload_identity_provider }}
36+
service_account: ${{ secrets.service_account }}
37+
create_credentials_file: true
38+
39+
- name: Deploy to Firebase
40+
run: |
41+
cd functions
42+
npm run deploy

0 commit comments

Comments
 (0)