Deploy Python Firebase functions to development environment #11
This file contains hidden or 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: Deploy Python Firebase functions to development environment | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - llm/** | |
| - firestore.rules | |
| - firestore.indexes.json | |
| - firebase.json | |
| - storage.rules | |
| workflow_dispatch: | |
| jobs: | |
| build_and_deploy: | |
| # Don't deploy forks, even if actions are enabled | |
| if: github.repository_owner == 'codeforboston' | |
| runs-on: ubuntu-latest | |
| environment: dev | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup build environment | |
| uses: ./.github/actions/setup-repo | |
| - name: Setup python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Build and deploy to Firebase | |
| # The only tag on this repo is v1.0.0, but it is very old | |
| # This SHA is main as of 2025-10-21 | |
| uses: w9jds/setup-firebase@869785322147e6a53d463a55db0a5af1b4ce4ba6 | |
| with: | |
| tools-version: 13.8.0 | |
| - run: firebase deploy --force --only functions:maple-llm | |
| env: | |
| GCP_SA_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} | |
| ASSEMBLY_API_KEY: ${{ secrets.ASSEMBLY_API_KEY }} | |
| PROJECT_ID: digital-testimony-dev |