Skip to content

Commit

Permalink
Create master.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisischris authored Mar 20, 2024
1 parent 9d8fcd9 commit 1baad67
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Deploy to Lambda
on: push
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Deploy to Lambda
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-2
AWS_DEFAULT_OUTPUT: json
run: npm install && esbuild ./*.ts --bundle --platform=node --outdir=dist --external:@aws-sdk && cd dist && zip -r lambda.zip * > /dev/null && aws lambda update-function-code --function-name heythisischris --zip-file \"fileb://lambda.zip\" > /dev/null && rm -rf lambda.zip

0 comments on commit 1baad67

Please sign in to comment.