Hasty fork of doonstore/firebase-deploy to update the node version in the Dockerfile. Your results may vary.
Current users:
- api.tla (private repo)
A GitHub Action to deploy firebase hosting and functions together.
- 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
secret
Optional Additional command line arguments to firebase
command. Defaults to empty.
name: Default Deploy
on:
push:
branches:
- master
jobs:
main:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Deploy to Firebase
uses: doonstore/firebase-deploy@v1
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_PROJECT: ${{ secrets.FIREBASE_PROJECT }}
name: Customized Deploy
on:
push:
branches:
- master
jobs:
main:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Deploy to Firebase
uses: doonstore/firebase-deploy@v1
with:
params: --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
FIREBASE_PROJECT: ${{ secrets.FIREBASE_PROJECT }}
This repo is taken from Deploy to Firebase by John Pickett with only some minor edits. His repo works great, but I needed to be able to deploy to Firebase hosting and functions together. Thanks to John for the original repo.