From cf4b78c2fdd348d1dbf92d0623d703ecabbe25e7 Mon Sep 17 00:00:00 2001 From: kaarthik108 Date: Sat, 22 Jul 2023 21:59:54 +1200 Subject: [PATCH] fix zip --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3594526..4c863b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ap-south-1 + aws-region: us-east-1 - name: Install dependencies env: CI: true @@ -26,7 +26,7 @@ jobs: npm ci - name: Zip and deploy run: | - npx ncc build index.ts - mv node_modules dist/ + npx ncc build index.ts -o dist cd dist && zip -r deploy.zip ./* + ls aws lambda update-function-code --function-name=resend_send --zip-file=fileb://dist/deploy.zip