-
-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (32 loc) · 921 Bytes
/
functions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: functions
on:
push:
branches:
- main
paths:
- '.github/workflows/functions.yml'
- 'backend/cloud_functions/**'
- 'backend/.firebaserc'
- 'backend/firebase.json'
jobs:
deploy:
timeout-minutes: 5
name: deployment
runs-on: ubuntu-latest
steps:
# Make sure to cancel simultaneous workflow runs as functions deploy does not support deploying in parallel.
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2.5.0
- name: Install dependencies
run: |
cd backend/cloud_functions
npm install --arch=x64
- uses: w9jds/firebase-action@v2.0.0
with:
args: deploy --only functions
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: backend