Skip to content

Ong-DevOps-Team/deploy-firebase-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Firebase

The GitHub Action for Firebase and wraps the firebase-tools CLI.

Usage

Example job step

An example step you can add to your workflow which deploys to Firebase:

- name: Firebase GitHub Action
  uses: jonahsnider/[email protected]
  env:
    PROJECT_ID: "google-cloud-or-firebase-project-id"
    FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
  with:
    args: deploy

Secrets

  • FIREBASE_TOKEN - Required Firebase access token
    • You can obtain a token with firebase login:ci
    • For information about access tokens please see the Firebase docs
    • For information about using secrets in GitHub Actions please see the Actions docs

Environment variables

  • PROJECT_ID - Optional Firebase/Google Cloud project ID

License

The Dockerfile and associated scripts and documentation in this project are released under the Apache 2.0.