DFD: new node and link related properties added, that will enable a b… #17
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: Build and deploy | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: write | |
actions: write | |
checks: write | |
statuses: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure aws credentials using OIDC | |
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 | |
with: | |
role-to-assume: arn:aws:iam::283582579564:role/threat-modeling-tool-apply | |
aws-region: ca-central-1 | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Build | |
run: yarn install && yarn build | |
- name: Deploy and invalidate cache | |
run: | | |
aws s3 sync ./build s3://threat-modeling.cdssandbox.xyz-f3pn8icp/ --delete | |
aws cloudfront create-invalidation --cli-input-json "{\"DistributionId\":\"E3989RAVFXNM48\",\"InvalidationBatch\":{\"Paths\":{\"Quantity\":1,\"Items\":[\"/*\"]},\"CallerReference\":\"$(date +%s)\"}}" |