Skip to content

v1.0.3

v1.0.3 #25

Workflow file for this run

name: Deploy to Prod
on:
release:
types: [published, deleted]
workflow_dispatch:
permissions:
id-token: write
contents: read
concurrency:
group: production
cancel-in-progress: false
jobs:
deploy-cdk:
runs-on: ubuntu-latest
environment: production
env:
STAGE: prod
defaults:
run:
working-directory: ./deploy
steps:
- uses: actions/[email protected]
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ vars.DEPLOY_ROLE_ARN }}
- uses: actions/[email protected]
with:
node-version: 22
cache: npm
cache-dependency-path: ./deploy/package-lock.json
- run: npm install -g aws-cdk
- run: npm ci
- name: Set vars to env
env:
VARS_JSON: ${{ toJSON(vars) }}
run: |
echo "$VARS_JSON" | jq -r 'keys[] as $k | "\($k)=\(.[$k])"' >> $GITHUB_ENV
- run: cdk deploy --all --require-approval never
env:
STAGE: prod