diff --git a/.github/workflows/deploy_functions.yml b/.github/workflows/deploy_functions.yml index c29e9db..dfb9faa 100644 --- a/.github/workflows/deploy_functions.yml +++ b/.github/workflows/deploy_functions.yml @@ -33,11 +33,11 @@ jobs: with: node-version: 19.7.0 - # Step 4: Create Service Account Key and Set Env Variables - # - name: Create SA key and set env variables - # run: | - # echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SCHEMESSG_V3_DEV }}' > ${{ runner.temp }}/gcloud.json - # echo "GOOGLE_APPLICATION_CREDENTIALS=${{ runner.temp }}/gcloud.json" >> $GITHUB_ENV + Step 4: Create Service Account Key and Set Env Variables + - name: Create SA key and set env variables + run: | + echo '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SCHEMESSG_V3_DEV }}' > ${{ runner.temp }}/gcloud.json + echo "GOOGLE_APPLICATION_CREDENTIALS=${{ runner.temp }}/gcloud.json" >> $GITHUB_ENV # Step 5: Prepare the environment - name: Prepare the environment @@ -51,6 +51,6 @@ jobs: # Step 6: deploy functions - name: Deploy functions working-directory: backend - # env: - # GOOGLE_APPLICATION_CREDENTIALS: ${{ runner.temp }}/gcloud.json + env: + GOOGLE_APPLICATION_CREDENTIALS: ${{ runner.temp }}/gcloud.json run: npx firebase-tools deploy --only functions --debug --token "${{ secrets.FIREBASE_TOKEN_SCHEMESSG_V3_DEV }}"