Stousn / firebase-deploy-action

🔥 GitHub Action to deploy a static site to Firebase Hosting

Home Page:https://github.com/marketplace/actions/firebase-deploy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://github.com/marketplace/actions/firebase-deploy

License:MIT License


Languages

Language:Dockerfile 70.3%Language:Shell 29.7%