This is a fork. Changes are
- Allow deploy on any branches
- Deploy everthing not only hosting
A GitHub Action to deploy to Firebase Hosting
- Make sure you have the
firebase.json
file in the repository - Get the Firebase token by running
firebase login:ci
and store it as theFIREBASE_TOKEN
secret - Set the project name in the
FIREBASE_PROJECT
env var
Example workflow
name: Build and Deploy
on:
push:
branches:
- master
jobs:
main:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Build Hugo
uses: hibikiledo/[email protected]
- name: Deploy to Firebase
uses: hibikiledo/[email protected]
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_PROJECT: name-of-the-project