-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (32 loc) · 855 Bytes
/
deploy.yaml
File metadata and controls
41 lines (32 loc) · 855 Bytes
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
name: Deploy to AWS CDK
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
env:
GA_ID: ${{ secrets.GA_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::214794239830:role/GithubActionsDeployRole
aws-region: ap-northeast-1
- run: aws sts get-caller-identity
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: setup frontend
run: cd frontend && npm ci && npm run build
- name: Deploy to AWS CDK
run: npx cdk deploy --require-approval never