Skip to content

refactor(firebase.json): streamline hosting configuration and remove … #2

refactor(firebase.json): streamline hosting configuration and remove …

refactor(firebase.json): streamline hosting configuration and remove … #2

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on Commit
on:
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci && npm run build
- name: Deploy to Firebase Hosting
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WALDORFWAHLEN }}
channelId: live
projectId: waldorfwahlen
# Firestore Rules Deployment Step
- name: Install Firebase CLI
run: npm install -g firebase-tools
- name: Deploy Firestore Rules
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WALDORFWAHLEN }}
run: firebase deploy --only firestore:rules