Update cms4devfest.ts #89
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 | |
strategy: | |
matrix: | |
include: | |
- org: DevLille | |
secret: DEVFEST_FIREBASE_TOKEN | |
function: "functions:cms4devfestgdg" | |
target: "default" | |
front: "production" | |
config: "firebase.devfest.json" | |
#- org: Cloud Nord | |
# secret: CLOUDNORD_FIREBASE_TOKEN | |
# function: "functions:cms4devfestcloudnord" | |
# target: "cloudnord" | |
# front: "production,cloudnord" | |
# config: "firebase.cloudnord.json" | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: "npm" | |
- name: Install Front | |
run: npm --prefix public install --force | |
- name: Build Back | |
run: npm --prefix functions install | |
- name: Deploy to Firebase for ${{ matrix.org }} | |
run: | | |
npm --prefix public run build -- --configuration ${{ matrix.front }} | |
#npx firebase-tools deploy -c ${{matrix.config}} -P ${{ matrix.target }} --only hosting | |
#npx firebase-tools deploy -c ${{matrix.config}} -P ${{ matrix.target }} --only firestore:rules | |
#npx firebase-tools deploy -c ${{matrix.config}} -P ${{ matrix.target }} --only functions:cms | |
#npx firebase-tools deploy -c ${{matrix.config}} -P ${{ matrix.target }} --only ${{ matrix.function }} | |
env: | |
FIREBASE_TOKEN: ${{ secrets[matrix.secret] }} |