Create firebase-functions.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Firebase Functions CI/CD | |
on: | |
push: | |
branches: | |
- main | |
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 |