Skip to content

Commit

Permalink
fix: update ci to publish function in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Oct 2, 2024
1 parent eae788a commit dd426d9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd426d9

Please sign in to comment.