Skip to content

Add GitHub Actions CI/CD pipeline #1

Add GitHub Actions CI/CD pipeline

Add GitHub Actions CI/CD pipeline #1

Workflow file for this run

name: Deploy CDK Python Lambda
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Install AWS CDK
run: npm install -g aws-cdk
- name: Deploy CDK stack
run: cdk deploy --require-approval never
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-south-1