2024-11-28 09:31:59 +00:00
|
|
|
name: Deploy Functions
|
|
|
|
|
2024-11-28 09:29:24 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- "functions/**"
|
|
|
|
- ".github/workflows/deploy-functions.yml"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
aws_cdk:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-11-28 09:42:57 +00:00
|
|
|
- name: Checkout repository
|
2024-11-28 09:50:05 +00:00
|
|
|
uses: actions/checkout@v4
|
2024-11-28 09:29:24 +00:00
|
|
|
- name: cdk deploy
|
|
|
|
uses: youyo/aws-cdk-github-actions@v2
|
|
|
|
with:
|
|
|
|
cdk_subcommand: "deploy"
|
|
|
|
cdk_stack: "stack1"
|
|
|
|
cdk_args: "--require-approval never"
|
2024-11-28 09:42:57 +00:00
|
|
|
working_dir: "functions"
|
2024-11-28 09:29:24 +00:00
|
|
|
actions_comment: false
|
|
|
|
env:
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
AWS_DEFAULT_REGION: "us-east-1"
|