Skip to content

Instantly share code, notes, and snippets.

@ddo
Created February 25, 2020 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddo/e6c9e3d7d059e1cde4859299293b3ae1 to your computer and use it in GitHub Desktop.
Save ddo/e6c9e3d7d059e1cde4859299293b3ae1 to your computer and use it in GitHub Desktop.
github actions > firebase deploy
name: Build and Deploy
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Install Yarn
run: curl -o- -L https://yarnpkg.com/install.sh | bash
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Functions Dependencies
working-directory: functions
run: yarn
- name: Deploy to Firebase
run: npx firebase-tools deploy --token $FIREBASE_TOKEN
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
@abegehr
Copy link

abegehr commented Feb 16, 2021

this is great!

@cvandradg
Copy link

Bring a beer to this good man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment