pashto-dictionary/.github/workflows/deploy-functions.yml

38 lines
1.3 KiB
YAML

name: Deploy Functions
on:
push:
branches:
- master
paths:
- "functions/**"
- ".github/workflows/deploy-functions.yml"
workflow_dispatch:
jobs:
aws_cdk:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: cdk deploy
uses: youyo/aws-cdk-github-actions@v2
with:
cdk_subcommand: "deploy"
cdk_stack: "stack1"
cdk_args: "--require-approval never"
working_dir: "functions"
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"
LINGDOCS_DICTIONARY_SPREADSHEET: ${{ secrets.LINGDOCS_DICTIONARY_SPREADSHEET }}
LINGDOCS_DICTIONARY_SHEET_ID: ${{ secrets.LINGDOCS_DICTIONARY_SHEET_ID }}
LINGDOCS_SERVICE_ACCOUNT_EMAIL: ${{ secrets.LINGDOCS_SERVICE_ACCOUNT_EMAIL }}
LINGDOCS_SERVICE_ACCOUNT_KEY: ${{ secrets.LINGDOCS_SERVICE_ACCOUNT_KEY }}
DICT_R2_ENDPOINT: ${{ secrets.DICT_R2_ENDPOINT }}
DICT_R2_KEY_ID: ${{ secrets.DICT_R2_KEY_ID }}
DICT_R2_KEY_SECRET: ${{ secrets.DICT_R2_KEY_SECRET }}
DICT_R2_BUCKET: ${{ secrets.DICT_R2_BUCKET }}