-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 1.08 KB
/
deploy.yml
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
name: "deploy"
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: "deploy"
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- uses: actions/cache@v3
name: pnpm cache
with:
path: ${{ env.PNPM_HOME }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/.npmrc') }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-store-
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@master
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: "us-east-1"
- name: Deploy to AWS
run: pnpm cdk deploy StacklineTakehome --require-approval=never
env:
CDK_DEFAULT_ACCOUNT: ${{ secrets.AWS_ACCOUNT }}
CDK_DEFAULT_REGION: "us-east-1"