We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5885994 commit 0074690Copy full SHA for 0074690
1 file changed
.github/workflows/deploy.yml
@@ -0,0 +1,36 @@
1
+name: Deploy Lambda
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - feat/lamda
7
8
+jobs:
9
+ deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - uses: actions/checkout@v3
14
15
+ - name: Setup Node 20
16
+ uses: actions/setup-node@v3
17
+ with:
18
+ node-version: 20
19
20
+ - name: Install dependencies
21
+ run: npm install --production
22
23
+ - name: Create ZIP
24
+ run: |
25
+ zip -r function.zip . \
26
+ -x "*.git*" \
27
+ -x "node_modules/.cache/*"
28
29
+ - name: Deploy to Lambda
30
+ uses: appleboy/lambda-action@v0.1.5
31
32
+ aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
33
+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
34
+ aws_region: us-east-1
35
+ function_name: digifymenu-apis
36
+ zip_file: function.zip
0 commit comments