Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

jakejarvis/firebase-deploy-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for Firebase Hosting 🔥

⚠️ Note: To use this action, you must have access to the GitHub Actions feature. GitHub Actions are currently only available in public beta. You can apply for the GitHub Actions beta here.

This simple action uses the vanilla Firebase CLI to run firebase deploy to upload a static site to Firebase Hosting.

Usage

workflow.yml Example

This example checks out your repository and runs firebase deploy on the root of it. Assuming you have a firebase.json file there, everything is taken care of automatically except your Firebase/Google Cloud API Token, which should be declared as a secret environment variable named FIREBASE_TOKEN. Obtain a token by running firebase login:ci on your local command line.

If you don't have a firebase.json file, you also need to specify a FIREBASE_PROJECT_ID environment variable with your Firebase project's unique ID.

You can add add optional firebase deploy flags by using with: args: under this step.

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: jakejarvis/firebase-deploy-action@master
      env:
        FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

License

This project is distributed under the MIT license.

About

🔥 GitHub Action to deploy a static site to Firebase Hosting

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors