-
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.13 KB
/
publish.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: 'CDK'
on:
push:
branches:
- main
env:
BucketName: ${{ secrets.MERGE_PDF_BUCKET }}
FROM_EMAIL: ${{ secrets.FROM_EMAIL }}
TO_EMAIL: ${{ secrets.TO_EMAIL }}
jobs:
cdk:
name: 'CDK'
runs-on: ubuntu-24.04
environment: production
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
defaults:
run:
shell: bash
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ secrets.AWS_ROLE_SESSION_NAME }}
aws-region: 'ap-southeast-3'
- name: Install CDK
run: |
npm install -g aws-cdk
cdk doctor
- name: Synth
run: cdk synth
- name: Diff
run: cdk diff
- name: Deploy
run: cdk deploy