-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.15 KB
/
deploy-development.yml
File metadata and controls
47 lines (39 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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