<!-- json
{
  "sourceId": "recipe-manager-firebase-deploy",
  "repositoryId": "recipe-manager",
  "filePath": ".github/workflows/firebase-hosting-merge.yml",
  "capabilityTags": ["workflow", "gcp", "firebase", "hosting", "deploy"],
  "operationIds": ["workflow-firebase-deploy"],
  "applicability": ["sample-project"],
  "notes": [
    "Reference Firebase Hosting static site deployment workflow pattern on merge."
  ]
}
-->

# recipe-manager-firebase-deploy

- Source: `.github/workflows/firebase-hosting-merge.yml`
- Capability tags: workflow, gcp, firebase, hosting, deploy
- Applicability: sample-project
- Notes:
  - Reference Firebase Hosting static site deployment workflow pattern on merge.

## Reference Code

```yaml
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
on:
  push:
    branches:
      - main
  workflow_dispatch: {}      
  
jobs:
  build_and_deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node
        uses: actions/setup-node@v6
        with:
          node-version: 26.3.0
      - name: Install monorepo deps
        run: npm i 
      - name: Build monorepo
        run: npx trvc build    
      - name: Install dependencies & Build UI
        run: |
          cd ui
          npm install
          npm run build        
      - uses: FirebaseExtended/action-hosting-deploy@v0
        with:
          repoToken: ${{ secrets.GITHUB_TOKEN }}
          firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_RECIPE_MANAGER_493112 }}
          channelId: live
          projectId: recipe-manager-493112
```
