Merge pull request #186 from HackMelbourne/new-hoodie #25
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: Deploy Firebase Functions | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- name: Install dependencies | |
run: | | |
npm ci | |
cd functions | |
npm ci | |
- name: Install Firebase CLI | |
run: npm install -g firebase-tools | |
- name: Deploy to Firebase | |
run: | | |
firebase deploy --only functions --token ${{ secrets.FIREBASE_TOKEN }} | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |