Skip to content

Commit 9dddd77

Browse files
committed
fix: lambda code update
1 parent d50bbd9 commit 9dddd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/api-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ jobs:
4444
run: cargo lambda build --release --output-format zip
4545

4646
- name: Upload to Lambda
47-
run: aws lambda update-function-code --function-name kb2-lambda-function-dev --zip-file fileb://target/lambda/api/bootstrap.zip
47+
run: aws lambda update-function-code --function-name kb2-lambda-function-${{ github.ref == 'refs/heads/main' && 'dev' || 'prod' }} --zip-file fileb://target/lambda/api/bootstrap.zip

0 commit comments

Comments
 (0)