Skip to content

CD flow changes

CD flow changes #13

Workflow file for this run

name: deploy to lambda
on:
push:
branches:
- master
- main
jobs:
deploy_lambda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: deploy
run: |
cd ./src
zip -r deploy.zip .
aws lambda update-function-code --function-name=enigma_lambda --zip-file=fileb://deploy.zip