Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Shigaki committed Sep 9, 2024
1 parent 2450b7d commit f7f498d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflow/firebase-functions.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: Firebase Functions CI/CD

on:
push:
branches:
- main
- firebase-cloud-project

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Firebase Tools
run: npm install -g firebase-tools
- name: Authenticate with Firebase
run: firebase login:ci --no-localhost --token ${{ secrets.FIREBASE_TOKEN }}
- name: Install Dependencies
run: npm install
- name: Deploy Firebase Functions
run: firebase deploy --only functions
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Deploy to Firebase
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: firebase deploy --only functions --token "$FIREBASE_TOKEN"

0 comments on commit f7f498d

Please sign in to comment.