make posts h-entry friendly #14
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: "CDK Deploy" | |
on: | |
push: | |
env: | |
AWS_REGION: "ap-southeast-2" | |
IAM_ROLE: "arn:aws:iam::301436506805:role/WebsiteStack-GhActionRole736F37DC-AsvkLQkqWN4g" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Git clone the repo | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/[email protected] | |
with: | |
aws-region: ${{ env.AWS_REGION }} | |
role-session-name: cdkdeploygithubaction | |
role-to-assume: ${{ env.IAM_ROLE }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Deploy | |
run: nix develop --command bash -c "cd cdk && cdk deploy" |