Skip to content

Deploy to Firebase Functions with targets

Actions
A GitHub Action to deploy to Firebase Functions modified to allow production or development deployment
1.1.0
Latest
Star (6)

Deploy to Firebase Functions With Project Targets!

A GitHub Action to deploy to Firebase Functions that is able to deploy to different projects. Need to deploy to production on one branch, then to development on another? Specify a 'target' by using the <key, value> set in your firebaserc file. For example:

{
  "projects": {
    "default": "production project id",
    "development": "development project id"
  }
}

Then, specify a value (as inidicated below in the example workflow) or none for default.

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: chrissank/deploy-firebase-functions@1.0.0
      env:
        FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
        TARGET: default

Contribution

I am no longer actively maintaining this code, however, if bugs or issues arise, please make a pull request. Please try to maintain backwards compatibility where possible.

Deploy to Firebase Functions with targets is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A GitHub Action to deploy to Firebase Functions modified to allow production or development deployment
1.1.0
Latest

Deploy to Firebase Functions with targets is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.