Skip to content

A GitHub Action to deploy to Firebase Functions with project target options

License

Notifications You must be signed in to change notification settings

Spotlightmarket/deploy-firebase-functions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A GitHub Action to deploy to Firebase Functions with project target options

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 80.3%
  • Dockerfile 19.7%