Skip to content

Update support for ๐ŸŒ„,๐ŸŽฃ,๐ŸŽณ,๐Ÿ’พ,๐ŸŽŸ๏ธ,๐Ÿบ,๐Ÿฅ,๐Ÿ“ ,๐Ÿงฉ,๐ŸŒ‹,โ˜‚๏ธ,๐Ÿ›‘,๐ŸŽฌ,๐Ÿ–๏ธ,๐Ÿ’ฌ,๐Ÿ’ป,๐Ÿค–,๐Ÿฆ„,๐Ÿ’Œ,๐Ÿ’—,๐ŸŒœ,๐Ÿ•ณ๏ธ,๐Ÿ—ฏ๏ธโ€ฆ #22

Update support for ๐ŸŒ„,๐ŸŽฃ,๐ŸŽณ,๐Ÿ’พ,๐ŸŽŸ๏ธ,๐Ÿบ,๐Ÿฅ,๐Ÿ“ ,๐Ÿงฉ,๐ŸŒ‹,โ˜‚๏ธ,๐Ÿ›‘,๐ŸŽฌ,๐Ÿ–๏ธ,๐Ÿ’ฌ,๐Ÿ’ป,๐Ÿค–,๐Ÿฆ„,๐Ÿ’Œ,๐Ÿ’—,๐ŸŒœ,๐Ÿ•ณ๏ธ,๐Ÿ—ฏ๏ธโ€ฆ

Update support for ๐ŸŒ„,๐ŸŽฃ,๐ŸŽณ,๐Ÿ’พ,๐ŸŽŸ๏ธ,๐Ÿบ,๐Ÿฅ,๐Ÿ“ ,๐Ÿงฉ,๐ŸŒ‹,โ˜‚๏ธ,๐Ÿ›‘,๐ŸŽฌ,๐Ÿ–๏ธ,๐Ÿ’ฌ,๐Ÿ’ป,๐Ÿค–,๐Ÿฆ„,๐Ÿ’Œ,๐Ÿ’—,๐ŸŒœ,๐Ÿ•ณ๏ธ,๐Ÿ—ฏ๏ธโ€ฆ #22

name: Deploy Application
on:
push:
branches:
- main
paths:
- "app/**"
workflow_dispatch:
jobs:
Bootstrap:
name: Deploy Application
runs-on: ubuntu-latest
steps:
- name: Checkout Repository ๐Ÿ“ฆ
uses: actions/checkout@v4
- name: Configure AWS Credentials ๐Ÿ”‘
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Setup Terraform ๐Ÿ—
uses: hashicorp/setup-terraform@v3.0.0
with:
terraform_version: 1.1.2
terraform_wrapper: false # Necessary to access output
- name: Terraform Init โœจ
id: init
run: terraform init -upgrade
working-directory: ./terraform
- name: Save Lambda function name to Environment Variables ๐Ÿ’พ
run: echo "LAMBDA_FUNCTION_NAME=$(terraform output -raw lambda_function)" >> $GITHUB_ENV
working-directory: ./terraform
- name: Setup Node ๐Ÿ—
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install packages ๐Ÿ“€
run: npm ci
working-directory: ./app
- name: Create Deployment Package ๐ŸŽ
run: zip -r lambda.zip .
working-directory: ./app
- name: Deploy Lambda Function ๐Ÿš€
env:
LAMBDA_FUNCTION_NAME: ${{ env.LAMBDA_FUNCTION_NAME }}
run: aws lambda update-function-code --function-name $LAMBDA_FUNCTION_NAME --zip-file fileb://lambda.zip
working-directory: ./app