From dd426d9363c20232d07d6d7b19b6189547c05232 Mon Sep 17 00:00:00 2001 From: steveoh Date: Wed, 2 Oct 2024 12:02:53 -0600 Subject: [PATCH] fix: update ci to publish function in dev --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e59acf..a5161a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,21 @@ jobs: env: VITE_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} + - name: 🚀 Deploy Cloud Function + uses: google-github-actions/deploy-cloud-functions@v3 + timeout-minutes: 10 + with: + name: send-email-service + runtime: nodejs20 + source_dir: function + entry_point: sendgrid + service_timeout: 30s + max_instance_count: 2 + min_instance_count: 0 + memory: 128Mb + secrets: 'SENDGRID_API_KEY=projects/${{ secrets.PROJECT_ID }}/secrets/sendgrid' + service_account: function-sa@${{ secrets.PROJECT_ID }}.iam.gserviceaccount.com + deploy-prod: name: Deploy to production runs-on: ubuntu-latest