A GitHub Action to deploy to Firebase Functions
- Make sure you have the
firebase.json
file in the repository - Get the Firebase token by running
firebase login:ci
and store it as theFIREBASE_TOKEN
secret
Example workflow
name: Firebase
on:
push:
branches:
- master
jobs:
main:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Deploy to Firebase
uses: wib-wub/deploy-firebase-functions@1.0.1
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}