Skip to content

Merge pull request #15 from jnton/renovate/httpcore-1.x #71

Merge pull request #15 from jnton/renovate/httpcore-1.x

Merge pull request #15 from jnton/renovate/httpcore-1.x #71

Workflow file for this run

name: Deploy Telegram Bot to AWS Lambda
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Package Application
run: |
zip -r package.zip . -x "*.git*" "venv/*" ".env*" ".github/*"
- name: Deploy to AWS Lambda
uses: appleboy/[email protected]
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
function_name: ${{ secrets.LAMBDA_FUNCTION_NAME }}
zip_file: package.zip