Typo in renaming. #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Lambda Package | |
on: | |
push: | |
branches: | |
- main # or the branch you want to deploy from | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt -t package/ | |
- name: Zip package | |
run: | | |
cd package | |
zip -r9 ../lambda_function.zip . | |
cd .. | |
zip -g lambda_function.zip lambda_function.py | |
- name: Deploy to AWS Lambda | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: eu-north-1 | |
run: | | |
aws lambda update-function-code --function-name registration-real-time --zip-file fileb://lambda_function.zip |