fix root hosted zone #40
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: Deploy | |
on: [push] | |
jobs: | |
staging: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: 'us-east-1' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- run: (cd ui && npm ci && npx webpack) | |
- run: (cd cdk && npm ci && STAGE=staging npx cdk deploy) | |
staging-cypress: | |
runs-on: ubuntu-latest | |
needs: staging | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cypress-io/github-action@v2 | |
with: | |
working-directory: ui-tests | |
prod: | |
runs-on: ubuntu-latest | |
needs: staging-cypress | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_DEFAULT_REGION: 'us-east-1' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- run: (cd ui && npm ci && npx webpack) | |
- run: (cd cdk && npm ci && STAGE=prod npx cdk deploy) |