Skip to content

edit: fix time format to %H:%M:%S. #17

edit: fix time format to %H:%M:%S.

edit: fix time format to %H:%M:%S. #17

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 ../app.zip .
cd ..
zip -g app.zip app.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://app.zip