Merge pull request #1828 from boazsender/automated-transcriptions #126
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 Firebase functions, storage, and firestore to the Development environment. | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - functions/** | |
| - firestore.rules | |
| - firestore.indexes.json | |
| - firebase.json | |
| - storage.rules | |
| 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@v2 | |
| - name: Setup Build Environment | |
| uses: ./.github/actions/setup-repo | |
| - name: Build and Deploy to Firebase | |
| uses: w9jds/[email protected] | |
| with: | |
| args: deploy --force --only firestore,functions,storage | |
| env: | |
| GCP_SA_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }} | |
| ASSEMBLY_API_KEY: ${{ secrets.ASSEMBLY_API_KEY }} | |
| PROJECT_ID: digital-testimony-dev |