Skip to content

📈 Feat: add analytics to track post and comment #26

📈 Feat: add analytics to track post and comment

📈 Feat: add analytics to track post and comment #26

name: Build and Deploy to Firebase
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FIREBLOG_APP_87945 }}
projectId: fireblog-app-87945
channelId: live
env:
FIREBASE_CLI_PREVIEWS: hostingchannels