Skip to content

Commit

Permalink
First send
Browse files Browse the repository at this point in the history
  • Loading branch information
kaarthik108 committed Jul 22, 2023
0 parents commit ca6b96b
Show file tree
Hide file tree
Showing 11 changed files with 4,858 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy

on:
push:
branches:
- master

jobs:
deploy_lambda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-south-1
- name: Install dependencies
env:
CI: true
run: |
npm ci
- name: Zip and deploy
run: |
npx ncc build index.ts
mv node_modules dist/
cd dist && zip -r deploy.zip ./*
aws lambda update-function-code --function-name=resend_send --zip-file=fileb://dist/deploy.zip
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
Loading

0 comments on commit ca6b96b

Please sign in to comment.