-
-
Notifications
You must be signed in to change notification settings - Fork 158
34 lines (32 loc) · 1.16 KB
/
deploy-prod.yml
File metadata and controls
34 lines (32 loc) · 1.16 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
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
# Update Typesense Schema
- uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}
- uses: google-github-actions/setup-gcloud@v3
- name: Update Typesense Schema
run: |
gcloud pubsub topics publish --project=digital-testimony-prod checkSearchIndexVersion --message='{"check": true}'