diff --git a/.github/workflows/deploy_functions_prod.yml b/.github/workflows/deploy_functions_prod.yml index 9986960..16cab71 100644 --- a/.github/workflows/deploy_functions_prod.yml +++ b/.github/workflows/deploy_functions_prod.yml @@ -1,4 +1,4 @@ -name: Deploy firebase functions to PROD +name: Deploy Functions Prod on: push: @@ -10,7 +10,7 @@ on: workflow_dispatch: jobs: - build_and_deploy: + deploy: runs-on: ubuntu-latest steps: # Step 1: Checkout the code @@ -75,4 +75,4 @@ jobs: working-directory: backend env: GOOGLE_APPLICATION_CREDENTIALS: ${{ runner.temp }}/gcloud.json - run: npx firebase-tools deploy --only functions --debug --token "${{ secrets.FIREBASE_TOKEN_SCHEMESSG_V3_PROD }}" + run: npx firebase-tools deploy --only functions --project schemessg --debug --token "${{ secrets.FIREBASE_TOKEN_PROD }}" diff --git a/backend/.firebaserc b/backend/.firebaserc index 53ae6b3..f1f728f 100644 --- a/backend/.firebaserc +++ b/backend/.firebaserc @@ -1,5 +1,7 @@ { "projects": { - "default": "schemessg-v3-dev" + "default": "schemessg-v3-dev", + "dev": "schemessg-v3-dev", + "prod": "schemessg" } }