The GitHub Actions dashboard helps you spot bottlenecks and optimize your CI pipeline with actionable insights.
Usage
name: 'Usage of firebase-action GitHub Action'
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Firebase Action
GitHub Action for interacting with Firebase
What is Firebase Action?
This Action for firebase-tools
enables arbitrary actions with the Firebase command-line client.
How to Specify Multiple Hosting Environments
To deploy to specific hosting environments, you can use the following configuration:
- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
with:
args: deploy --only hosting:[environment name]
How to Add a Deployment Message
To include a deployment message, such as the Git commit message, use the following configuration:
- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }}
with:
args: deploy --message \"${{ github.event.head_commit.message }}\"
run: firebase ${{ steps.deploy.outputs.args }}
Monitoring GitHub Actions Workflows
CICube is a GitHub Actions monitoring tool that provides you with detailed insights into your workflows to further optimize your CI/CD pipeline. With CICube, you will be able to track your workflow runs, understand where the bottlenecks are, and tease out the best from your build times. Go to cicube.io now and create a free account to better optimize your GitHub Actions workflows!