feat: migrate to callable function #7
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
- name: Install Front | |
run: npm --prefix public install | |
- name: Build Back | |
run: npm --prefix functions install | |
- name: Deploy to Firebase for Devfest Lille | |
run: | | |
npx firebase-tools deploy -P default --only hostings | |
npx firebase-tools deploy -P default --only firestore:rules | |
npx firebase-tools deploy -P default --only functions:cms | |
npx firebase-tools deploy -P default --only functions:cms4devfestgdg | |
env: | |
FIREBASE_TOKEN: ${{ secrets.DEVFEST_FIREBASE_TOKEN }} | |
- name: Deploy to Firebase for cloudnord | |
run: | | |
npx firebase-tools deploy -P cloudnord --only hostings | |
npx firebase-tools deploy -P cloudnord --only firestore:rules | |
npx firebase-tools deploy -P cloudnord --only functions:cms4 | |
npx firebase-tools deploy -P cloudnord --only functions:cms4devfestcloudnord | |
env: | |
FIREBASE_TOKEN: ${{ secrets.CLOUDNORD_FIREBASE_TOKEN }} |