Dispatch | Setup guCDK deployment #6
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Build and deploy to riff-raff | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.14 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Check pinned dependencies | |
| run: bun run check:pinned-deps | |
| - name: Check formatting | |
| run: bun run format:check | |
| - name: Lint | |
| run: bun run lint | |
| - name: Typecheck | |
| run: bun run typecheck | |
| - name: Test | |
| run: bun run test | |
| - name: Build and synth CDK | |
| working-directory: cdk | |
| run: | | |
| bun run lint | |
| bun run test | |
| bun run synth | |
| - name: Bundle assets | |
| run: | | |
| bun run build:lambda | |
| - name: Upload to riff-raff | |
| uses: guardian/actions-riff-raff@v4 | |
| with: | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
| projectName: Editorial Tools::Dispatch | |
| configPath: cdk/cdk.out/riff-raff.yaml | |
| contentDirectories: | | |
| cdk.out: | |
| - cdk/cdk.out | |
| dispatch: | |
| - dist |