chore: Bootstrap CDK and deploy all stacks #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Deploy Bot" | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
cdk: | |
name: "Deploy All Stacks" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
env: | |
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID_DEV }}" | |
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}" | |
AWS_DEFAULT_REGION: "us-east-1" | |
BOT_TOKEN: "${{ secrets.BOT_TOKEN}}" | |
CHAT_ID: "${{ secrets.CHAT_ID}}" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Set up Node 22 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "22" | |
- name: Install Python dependencies and CDK | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
npm install -g aws-cdk | |
- name: Bootstrap CDK | |
run: cdk bootstrap aws://943421037171/us-east-1 | |
- name: deploy all stacks | |
run: cdk deploy --all --require-approval never |