Install via ubuntu; use 3 variants (#1949) #7
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: Install Python 3.11 | |
| run: | | |
| sudo add-apt-repository ppa:deadsnakes/ppa -y | |
| sudo apt update | |
| sudo apt install python3.11 python3.11-venv python3.11-pip | |
| - name: Build and deploy to Firebase | |
| uses: w9jds/[email protected] | |
| with: | |
| args: 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 |