-
-
Notifications
You must be signed in to change notification settings - Fork 154
38 lines (37 loc) · 1.15 KB
/
deploy-python-backend-dev.yml
File metadata and controls
38 lines (37 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: Setup 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.18.0
gcp_sa_key: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
project_id: digital-testimony-dev
- name: Deploy Python firebase functions
run: firebase deploy --force --only functions:maple-llm