Skip to content

built logic for controller #22

built logic for controller

built logic for controller #22

Workflow file for this run

name: Deploy to AWS Lambda
on:
push:
branches:
- main # Trigger the workflow on push to the main branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create ZIP file
run: |
zip -r lambda_function_payload.zip . -x '*.git*'
- name: Deploy to Lambda
uses: appleboy/lambda-action@master
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: PostToSocials
zip_file: lambda_function_payload.zip