Add telegram_token and chat_id in lambda env #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 function from source | |
on: [push] | |
jobs: | |
deploy_source: | |
name: Deploy lambda function from source | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout source code | |
uses: actions/checkout@v3 | |
- name: default deploy | |
uses: appleboy/lambda-action@v0.1.9 | |
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: scrapy-telegram-bot | |
source: main.py | |
environment: TELEGRAM_TOKEN=${{ secrets.TELEGRAM_TOKEN }},CHAT_ID=${{ secrets.CHAT_ID }} |