Merge pull request #1935 from codeforboston/main #71
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 the frontend and backend to the Firebase Production environment. | |
| on: | |
| push: | |
| branches: | |
| - prod | |
| jobs: | |
| build_and_deploy: | |
| # Don't deploy forks, even if actions are enabled | |
| if: github.repository_owner == 'codeforboston' | |
| runs-on: ubuntu-latest | |
| environment: prod | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v2 | |
| - name: Setup Build Environment | |
| uses: ./.github/actions/setup-repo | |
| - name: Build and Deploy to Firebase | |
| uses: w9jds/firebase-action@v13.18.0 | |
| with: | |
| args: deploy --force --only firestore,functions:maple,storage | |
| env: | |
| GCP_SA_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} | |
| ASSEMBLY_API_KEY: ${{ secrets.ASSEMBLY_API_KEY }} | |
| PROJECT_ID: digital-testimony-prod |